Dieser API-Integrationsleitfaden hilft Ihnen, im Handumdrehen mit Ihrer Astrologie-Website oder mobilen App zu beginnen. Mit der Prokerala-API-Integration können Sie benutzerdefinierte Horoskope erstellen, Horoskopabgleiche durchführen, Mangal-Doshas überprüfen und vieles mehr.
PHP muss eine Mindestversion von PHP 5.6.0 sein.
Wenn Ihr Projekt Composer verwendet, führen Sie den folgenden Befehl aus
Komponist benötigt prokerala/astrology-api:1.*
Wenn Sie Composer nicht verwenden, laden Sie die neueste Version aus dem Abschnitt „Releases“ herunter. Sie sollten die Datei astrology-api.zip herunterladen. Fügen Sie anschließend autoload.php in Ihre Anwendung ein und Sie können die API wie gewohnt verwenden.
<?php
include '../vendor/autoload.php';
use ProkeralaAstrologyAstro;
$astro = new Astro('YOUR_API_KEY_HERE');
/**
* To get Panchang details
* ayanamsa is always 1
* datetime should be ISO 8601 format
* coordinates should be valid latitude and longitude eg : `10.214747,78.097626`
**/
$ayanamsa = 1;
$datetime = '2004-02-12T15:19:21+00:00';
$coordinates = '10.214747,78.097626';
$response = $astro->calculatePanchang($datetime, $coordinates, $ayanamsa);
/**
* To get Birth Chart details
* ayanamsa is always 1
* dob should be ISO 8601 format
* coordinates should be valid latitude and longitude eg : `10.214747,78.097626`
**/
$ayanamsa = 1;
$dob = '2004-02-12T15:19:21+00:00';
$coordinates = '10.214747,78.097626';
$response = $astro->calculateBirthChart($dob, $coordinates, $ayanamsa);
/**
* To get Manglik/Mangal Dosha details
* ayanamsa is always 1
* dob should be ISO 8601 format
* coordinates should be valid latitude and longitude eg : `10.214747,78.097626`
**/
$ayanamsa = 1;
$dob = '2004-02-12T15:19:21+00:00';
$coordinates = '10.214747,78.097626';
$response = $astro->calculateManglik($dob, $coordinates, $ayanamsa);
/**
* To get Kundali Matching/Gun Milan/Ashta Koot details
* (It is the north indian match making method)
*
* ayanamsa is always 1
* dob should be ISO 8601 format
* coordinates should be valid latitude and longitude eg : `10.214747,78.097626`
**/
$ayanamsa = 1;
$bride_dob = '2004-02-12T15:19:21+00:00';
$bride_coordinates = '10.214747,78.097626';
$bridegroom_dob = '2004-02-12T15:19:21+00:00';
$bridegroom_coordinates = '10.214747,78.097626';
$response = $astro->calculateKundaliMatching($bride_dob, $bridegroom_dob, $bride_coordinates, $bridegroom_coordinates, $ayanamsa);
/**
* To get Horoscope Matching/Dasha Porutham/Dasha Koot details
* (It is the south indian match making method)
*
* system is either kerala/tamil
* ayanamsa is always 1
* dob should be ISO 8601 format
* coordinates should be valid latitude and longitude eg : `10.214747,78.097626`
**/
$system = 'tamil';
$ayanamsa = 1;
$bride_dob = '2004-02-12T15:19:21+00:00';
$bride_coordinates = '10.214747,78.097626';
$bridegroom_dob = '2004-02-12T15:19:21+00:00';
$bridegroom_coordinates = '10.214747,78.097626';
$response = $astro->calculateHoroscopeMatching($system, $bride_dob, $bridegroom_dob, $bride_coordinates, $bridegroom_coordinates, $ayanamsa);
Weitere Hilfe finden Sie in unserer Dokumentation unter https://api.prokerala.com/docs/
Das Prokerala Astrology API PHP SDK wird unter der MIT-Lizenz veröffentlicht. Weitere Einzelheiten finden Sie in der LICENSE-Datei.
prokerala-astrology-api-php wird vom Prokerala Developer Experience Team geleitet und unterstützt.
prokerala-astrology-api-php wird von Ennexa Technologies, Pvt Ltd. gepflegt und finanziert. Die Namen und Logos für prokerala-astrology-api-php sind Marken von Technologies, Pvt Ltd.