PHPackages                             lt-25/astrology-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. lt-25/astrology-api

ActiveLibrary[API Development](/categories/api)

lt-25/astrology-api
===================

PHP Laravel SDK for SkyVedic / AstrologyAPI.com — covers Horoscope, Panchang, Dasha, MatchMaking, KP, LalKitab, Varshaphal, Numerology &amp; more.

v1.0.2(1mo ago)19↓90%MITPHPPHP &gt;=7.3

Since Jun 4Pushed 1mo agoCompare

[ Source](https://github.com/lt-25/astrology-api)[ Packagist](https://packagist.org/packages/lt-25/astrology-api)[ Docs](https://github.com/lt-25/astrology-api)[ RSS](/packages/lt-25-astrology-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

SkyVedic Astrology API — PHP Laravel SDK
========================================

[](#skyvedic-astrology-api--php-laravel-sdk)

[![PHP](https://camo.githubusercontent.com/e030a40c1a2e2c1d602f35d5c1d48d774571578b056fd6787f0e0c92b416bbbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e33253230254532253830253933253230382e322d626c7565)](https://www.php.net)[![Laravel](https://camo.githubusercontent.com/f2dd101bbb98633764ebeacd61545f764917ace829d31642f776a08492f7cba5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3725323025453225383025393325323031322d726564)](https://laravel.com)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

A clean, service-oriented PHP SDK for the [AstrologyAPI.com](https://www.astrologyapi.com) / SkyVedic API. Covers all endpoints: Horoscope, Dasha, Panchang, MatchMaking, KP, Lal Kitab, Varshaphal, Numerology, Dosha/Remedies, and more.

---

Requirements
------------

[](#requirements)

ComponentVersionPHP7.3 – 8.2Laravel7.x – 12.xGuzzle^6.5 or ^7.0---

Installation
------------

[](#installation)

```
composer require lt-25/astrology-api
```

### Laravel Auto-Discovery

[](#laravel-auto-discovery)

The service provider and facade are registered automatically via Laravel's package auto-discovery (`extra.laravel` in `composer.json`).

### Publish Config

[](#publish-config)

```
php artisan vendor:publish --tag=skyledic-astrology-api-config
```

This creates `config/astrology-api.php`.

---

Configuration
-------------

[](#configuration)

Add these keys to your `.env`:

```
ASTROLOGY_API_BASE_URL=https://json.astrologyapi.com
ASTROLOGY_API_VERSION=v1
ASTROLOGY_API_USER_ID=your_user_id
ASTROLOGY_API_KEY=your_api_key
ASTROLOGY_API_LANGUAGE=en
ASTROLOGY_API_TIMEOUT=30
ASTROLOGY_API_VERIFY_SSL=true

# For SkyVedic local mirror:
# ASTROLOGY_API_BASE_URL=http://localhost:3000
```

---

Usage
-----

[](#usage)

### Via Facade

[](#via-facade)

```
use SkyVedic\AstrologyApi\Facades\AstrologyApi;
use SkyVedic\AstrologyApi\BirthData;

$bd = new BirthData(27, 6, 2000, 15, 30, 25.7464, 82.6837, 5.5);

// Planets
$planets = AstrologyApi::horoscope()->planets($bd);

// Birth details
$birth = AstrologyApi::horoscope()->birthDetails($bd);

// Current dasha
$dasha = AstrologyApi::dasha()->currentVdashaAll($bd);

// Panchang
$panchang = AstrologyApi::panchang()->basicPanchang($bd);
```

### Via Dependency Injection

[](#via-dependency-injection)

```
use SkyVedic\AstrologyApi\AstrologyApi;
use SkyVedic\AstrologyApi\BirthData;

class AstrologyController extends Controller
{
    protected $api;

    public function __construct(AstrologyApi $api)
    {
        $this->api = $api;
    }

    public function planets()
    {
        $bd = new BirthData(27, 6, 2000, 15, 30, 25.7464, 82.6837, 5.5);
        return $this->api->horoscope()->planets($bd);
    }
}
```

### Without Laravel (standalone)

[](#without-laravel-standalone)

```
use SkyVedic\AstrologyApi\AstrologyApi;
use SkyVedic\AstrologyApi\BirthData;

$api = new AstrologyApi('your_user_id', 'your_api_key');

$bd = new BirthData(27, 6, 2000, 15, 30, 25.7464, 82.6837, 5.5);
$planets = $api->horoscope()->planets($bd);
```

---

Services &amp; Methods
----------------------

[](#services--methods)

### GeoService — `$api->geo()`

[](#geoservice--api-geo)

```
$api->geo()->geoDetails('Mumbai', 6);
$api->geo()->timezoneWithDst($day, $month, $year, $hour, $min, $lat, $lon, $tzone);
```

### HoroscopeService — `$api->horoscope()`

[](#horoscopeservice--api-horoscope)

```
$api->horoscope()->birthDetails($bd);
$api->horoscope()->astroDetails($bd);
$api->horoscope()->planets($bd);
$api->horoscope()->planetsExtended($bd, '#FF0000', '#00FF00', '#0000FF', 'north');
$api->horoscope()->planetNature($bd);
$api->horoscope()->horoChart($bd, 'D9');           // D1, D2, D3, D7, D9, D10, D12...
$api->horoscope()->horoChartImage($bd, 'D9');
$api->horoscope()->horoChartExtended($bd);
$api->horoscope()->ayanamsha($bd);
$api->horoscope()->bhavMadhya($bd);
$api->horoscope()->ghatChakra($bd);
$api->horoscope()->panchadaMaitri($bd);
$api->horoscope()->planetAshtak($bd, 'mars');      // sun,moon,mars,mercury,venus,jupiter,saturn
$api->horoscope()->sarvashtak($bd);
$api->horoscope()->biorhythm($bd);
$api->horoscope()->moonBiorhythm($bd);
```

### DashaService — `$api->dasha()`

[](#dashaservice--api-dasha)

```
$api->dasha()->currentVdasha($bd);
$api->dasha()->currentVdashaAll($bd);
$api->dasha()->majorVdasha($bd);
$api->dasha()->subVdasha($bd, 'jupiter');
$api->dasha()->subSubVdasha($bd, 'mars', 'mars');
$api->dasha()->subSubSubVdasha($bd, 'mars', 'jupiter', 'rahu');
$api->dasha()->subSubSubSubVdasha($bd, 'mars', 'jupiter', 'rahu', 'venus');
$api->dasha()->majorYoginiDasha($bd);
$api->dasha()->currentYoginiDasha($bd);
$api->dasha()->subYoginiDasha($bd, 1, 'ulka');
$api->dasha()->currentCharDasha($bd);
$api->dasha()->majorCharDasha($bd);
$api->dasha()->subCharDasha($bd, 'aries');
```

### PanchangService — `$api->panchang()`

[](#panchangservice--api-panchang)

```
$api->panchang()->basicPanchang($bd);
$api->panchang()->basicPanchangSunrise($bd);
$api->panchang()->advancedPanchang($bd);
$api->panchang()->advancedPanchangSunrise($bd);
$api->panchang()->planetPanchang($bd);
$api->panchang()->planetPanchangSunrise($bd);
$api->panchang()->panchangChartSunrise($bd);
$api->panchang()->monthlyPanchang($bd);
$api->panchang()->tamilPanchang($bd);
$api->panchang()->tamilMonthPanchang($bd);
$api->panchang()->panchangFestival($bd);
$api->panchang()->horaMuhurta($bd);
$api->panchang()->horaMuhurtaDinman($bd);
$api->panchang()->chaughadiyaMuhurta($bd);
```

### MatchMakingService — `$api->matchMaking()`

[](#matchmakingservice--api-matchmaking)

```
$male   = new BirthData(25, 12, 1988, 4,  0,  25.123, 82.34, 5.5);
$female = new BirthData(9,  12, 1990, 12, 56, 25.123, 82.34, 5.5);

$api->matchMaking()->matchBirthDetails($male, $female);
$api->matchMaking()->matchObstructions($male, $female);
$api->matchMaking()->matchAstroDetails($male, $female);
$api->matchMaking()->matchPlanetDetails($male, $female);
$api->matchMaking()->matchManglikReport($male, $female);
$api->matchMaking()->matchAshtakootPoints($male, $female);
$api->matchMaking()->matchDashakootPoints($male, $female);
$api->matchMaking()->matchPercentage($male, $female);
$api->matchMaking()->matchMakingReport($male, $female);
$api->matchMaking()->matchMakingDetailedReport($male, $female);
$api->matchMaking()->simpleManglik($bd);
```

### NumerologyService — `$api->numerology()`

[](#numerologyservice--api-numerology)

```
$api->numerology()->numeroTable(10, 5, 1990, 'Rahul');
$api->numerology()->numeroReport(10, 5, 1990, 'Rahul');
$api->numerology()->numeroFavTime(10, 5, 1990, 'Rahul');
$api->numerology()->numeroPlaceVastu(10, 5, 1990, 'Rahul');
$api->numerology()->numeroFastsReport(10, 5, 1990, 'Rahul');
$api->numerology()->numeroFavLord(10, 5, 1990, 'Rahul');
$api->numerology()->numeroFavMantra(10, 5, 1990, 'Rahul');
$api->numerology()->numeroPredictionDaily(10, 5, 1990, 'Rahul');
```

### DoshaRemedyService — `$api->dosha()`

[](#dosharemedyservice--api-dosha)

```
$api->dosha()->kalsarpaDetails($bd);
$api->dosha()->sadhesatiCurrentStatus($bd);
$api->dosha()->sadhesatiLifeDetails($bd);
$api->dosha()->sadhesatiRemedies($bd);
$api->dosha()->pitraDosha($bd);
$api->dosha()->gemSuggestion($bd);
$api->dosha()->pujaSuggestion($bd);
$api->dosha()->rudrakshaSuggestion($bd);
```

### PredictionService — `$api->prediction()`

[](#predictionservice--api-prediction)

```
$api->prediction()->dailyNakshatraPrediction($bd);
$api->prediction()->dailyNakshatraPredictionNext($bd);
$api->prediction()->dailyNakshatraPredictionPrevious($bd);
$api->prediction()->generalAscendantReport($bd);
$api->prediction()->generalNakshatraReport($bd, 'male');
$api->prediction()->generalHouseReport($bd, 'sun');
$api->prediction()->generalRashiReport($bd, 'moon');
```

### KpService — `$api->kp()`

[](#kpservice--api-kp)

```
$api->kp()->kpPlanets($bd);
$api->kp()->kpHouseCusps($bd);
$api->kp()->kpBirthChart($bd);
$api->kp()->kpHouseSignificator($bd);
$api->kp()->kpPlanetSignificator($bd);
$api->kp()->kpHoroscope($bd, 'major');
```

### LalKitabService — `$api->lalKitab()`

[](#lalkitabservice--api-lalkitab)

```
$api->lalKitab()->horoscope($bd);
$api->lalKitab()->debts($bd);
$api->lalKitab()->remedies($bd, 'sun');
$api->lalKitab()->houses($bd);
$api->lalKitab()->planets($bd);
```

### VarshaphalService — `$api->varshaphal()`

[](#varshaphalservice--api-varshaphal)

```
$api->varshaphal()->yearChart($bd);
$api->varshaphal()->monthChart($bd);
$api->varshaphal()->details($bd);
$api->varshaphal()->planets($bd);
$api->varshaphal()->muntha($bd);
$api->varshaphal()->muddaDasha($bd);
$api->varshaphal()->panchavargeeya($bd);
$api->varshaphal()->harshaBala($bd);
$api->varshaphal()->yoga($bd);
$api->varshaphal()->sahamPoints($bd);
```

### TransitService — `$api->transit()`

[](#transitservice--api-transit)

```
$api->transit()->upcomingHouseChanges($bd, 'Delhi', 'LAHIRI', 'P', '2024-08-21T14:00:00', 30, true);
```

---

BirthData Object
----------------

[](#birthdata-object)

```
use SkyVedic\AstrologyApi\BirthData;

$bd = new BirthData(
    day:   27,
    month: 6,
    year:  2000,
    hour:  15,
    min:   30,
    lat:   25.7464,
    lon:   82.6837,
    tzone: 5.5
);
```

---

Ayanamsha Values
----------------

[](#ayanamsha-values)

ValueSystem`LAHIRI`Default — Lahiri (Chitrapaksha)`KP_OLD`KP Old`KP_NEW`KP New (recommended for KP system)`YUKTESHWAR`Yukteshwar`RAMAN`Raman`JN_BHASIN`JN Bhasin`FAGAN_BRADLEY`Fagan Bradley (Western Sidereal)---

Error Handling
--------------

[](#error-handling)

```
use SkyVedic\AstrologyApi\Exceptions\AstrologyApiException;
use SkyVedic\AstrologyApi\Exceptions\AuthenticationException;
use SkyVedic\AstrologyApi\Exceptions\ValidationException;

try {
    $result = AstrologyApi::horoscope()->planets($bd);
} catch (AuthenticationException $e) {
    // Invalid API key or user ID
} catch (ValidationException $e) {
    // Invalid request parameters
} catch (AstrologyApiException $e) {
    // Other API errors
}
```

---

Language Support
----------------

[](#language-support)

```
// Set Hindi response language
AstrologyApi::setLanguage('hi');

// Or at construction time (standalone)
$api = new AstrologyApi($userId, $apiKey);
$api->setLanguage('hi');
```

---

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38881d85d7a1831077c0d3ddd78301f98529bdff88a75134883311fd8a99def0?d=identicon)[lt-25](/maintainers/lt-25)

---

Top Contributors

[![lt-25](https://avatars.githubusercontent.com/u/85921255?v=4)](https://github.com/lt-25 "lt-25 (4 commits)")

---

Tags

laravelhoroscopeastrologykundlipanchangvedic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lt-25-astrology-api/health.svg)

```
[![Health](https://phpackages.com/badges/lt-25-astrology-api/health.svg)](https://phpackages.com/packages/lt-25-astrology-api)
```

###  Alternatives

[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.6k](/packages/simplestats-io-laravel-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
