clearsoft / easysql-laravel
Laravel integration for the EasySQL PHP SDK — service provider, manager and facade.
v3.3.0
2026-10-11 04:04 UTC
Requires
- php: >=8.2
- clearsoft/easysql-client: ^3.0
- illuminate/contracts: ^11.0 || ^12.0
- illuminate/support: ^11.0 || ^12.0
Requires (Dev)
- orchestra/testbench: ^9.0 || ^10.0
- phpunit/phpunit: ^11.0
Suggests
- illuminate/support: Required to use the Laravel Service Provider and Facade (^11.0)
Provides
None
Conflicts
None
Replaces
None
README
Laravel integration for the EasySQL PHP SDK — service provider, connection manager and facade.
Installation
composer require clearsoft/easysql-laravel
Requirements: PHP >= 8.2, Laravel ^11.0, clearsoft/easysql-client.
Package discovery is automatic (provider + EasySQL alias registered via extra.laravel).
Usage
php artisan vendor:publish --tag=easysql-config
EASYSQL_BASE_URL=https://api.easysql.net EASYSQL_ACCESS_TOKEN=your-access-token EASYSQL_TIMEOUT=30
use Clearsoft\EasySql\Laravel\Facades\EasySQL; $result = EasySQL::createQuery(['connection_id' => 'conn_abc123', 'question' => '...']); $analytics = EasySQL::connection('analytics');
Tests
./vendor/bin/phpunit --testsuite laravel