https://github.com/astroway/astroway-php-laravel
Official Laravel ServiceProvider + facade for astroway/sdk — auto-discovered, env-driven config, container singleton, Astroway facade. Laravel 10 / 11 / 12, PHP 8.1+.
https://github.com/astroway/astroway-php-laravel
api astrology astroway autodiscovery companion facade horoscope laravel laravel-package natal-chart psr-18 sdk service-provider synastry vedic-astrology
Last synced: about 1 month ago
JSON representation
Official Laravel ServiceProvider + facade for astroway/sdk — auto-discovered, env-driven config, container singleton, Astroway facade. Laravel 10 / 11 / 12, PHP 8.1+.
- Host: GitHub
- URL: https://github.com/astroway/astroway-php-laravel
- Owner: astroway
- License: mit
- Created: 2026-05-10T21:55:32.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-10T23:21:45.000Z (about 2 months ago)
- Last Synced: 2026-05-11T01:26:35.241Z (about 2 months ago)
- Topics: api, astrology, astroway, autodiscovery, companion, facade, horoscope, laravel, laravel-package, natal-chart, psr-18, sdk, service-provider, synastry, vedic-astrology
- Language: PHP
- Homepage: https://api.astroway.info/docs/
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README
# astroway/sdk-laravel
> Official Laravel ServiceProvider + facade for [`astroway/sdk`](https://packagist.org/packages/astroway/sdk) — auto-discovered, env-driven, container singleton.
[](https://packagist.org/packages/astroway/sdk-laravel)
## Install
```bash
composer require astroway/sdk-laravel
php artisan vendor:publish --tag=astroway-config
```
ServiceProvider + facade auto-register via `composer.json`'s `extra.laravel.providers` — no edit to `config/app.php` needed.
## Configure
`.env`:
```env
ASTROWAY_API_KEY=aw_live_…
ASTROWAY_BASE_URL=https://api.astroway.info/v1 # optional
ASTROWAY_TIMEOUT=30 # optional, seconds
ASTROWAY_AUTH_SCHEME=header # optional, header|bearer
```
`config/astroway.php` (published from the package) pulls these from `env()`.
## Use
### Via dependency injection
```php
use Astroway\Astroway;
class ChartController extends Controller
{
public function __construct(private readonly Astroway $astroway) {}
public function store(Request $request)
{
return response()->json(
$this->astroway->chart()->compute($request->all()),
);
}
}
```
### Via facade
```php
use Astroway\Laravel\Facades\Astroway;
return Astroway::chart()->compute(['date' => '1990-01-15', ...]);
```
### Via container alias
```php
$aw = app('astroway');
$chart = $aw->chart()->compute([...]);
```
## Roadmap
- `0.1.0-alpha.x` — ServiceProvider + facade + config publish (current).
- `0.1.0-beta.1` — Telescope integration (every Astroway call visible in Telescope HTTP tab).
- `0.1.0-rc.1` — Artisan commands (`php artisan astroway:health`, `astroway:credits`).
- `0.1.0` — stable surface freeze.
## Links
- 📦 Packagist:
- 📦 Core SDK: [`astroway/sdk`](https://packagist.org/packages/astroway/sdk)
- 📘 API docs:
## License
MIT — see [`LICENSE`](./LICENSE).