Download the PHP package javaabu/dhivehigpt-sdk without Composer
On this page you can find all versions of the php package javaabu/dhivehigpt-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download javaabu/dhivehigpt-sdk
More information about javaabu/dhivehigpt-sdk
Files in javaabu/dhivehigpt-sdk
Package dhivehigpt-sdk
Short Description PHP / Laravel SDK to interact with the DhivehiGPT API
License MIT
Homepage https://github.com/Javaabu/dhivehigpt-sdk-php
Informations about the package dhivehigpt-sdk
DhivehiGPT PHP SDK
A lightweight PHP / Laravel SDK for the DhivehiGPT API, covering voices, text-to-speech, subscription balance, and tasks. It has no framework dependency, so it works in plain PHP applications as well as any Laravel application from version 9 through 13. Its only dependency is Guzzle, the standard PHP HTTP client — already installed in most Laravel and modern PHP projects.
Installation
You can install the package via composer:
Getting an API key
You need a DhivehiGPT team account with an active subscription to generate API keys, and only team owners and admins can generate them. Generate one from the API Keys page in your DhivehiGPT team account.
Basic usage
Plain PHP
Laravel
The package's configuration is read from the dhivehigpt key in Laravel's built-in config/services.php file — there is no separate config file to publish. Add the following:
Then set your API key in .env:
The service provider and the DhivehiGpt facade are auto-discovered. Use the facade, or inject Javaabu\DhivehiGpt\DhivehiGpt:
See Installation & Setup for the full details, including how to customize the underlying Guzzle client.
Documentation
You'll find the full documentation on https://docs.javaabu.com/docs/dhivehigpt-sdk-php.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Testing
You can run the tests with
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Javaabu Pvt. Ltd.
- Arushad Ahmed (@dash8x)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.