Download the PHP package clearsoft/easysql-sdk without Composer

On this page you can find all versions of the php package clearsoft/easysql-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package easysql-sdk

EasySQL Logo

EasySQL PHP & Laravel SDK

Official PHP & Laravel SDK for the EasySQL API ยท A Clearsoft Product

Packagist Version CI Status PHP Version Laravel Version License Website Company

--- Ask questions in natural language to your MySQL, MariaDB, or SQLite databases directly from your PHP applications and Laravel projects. ## Packages This is a multipackage repository. All packages are versioned and released together. | Package | Composer name | Description | |---|---|---| | [`packages/client`](packages/client) | `easysql/client` | ๐Ÿค– Generated API client (from the OpenAPI spec) + token-refresh runtime | | [`packages/connectors/mysql`](packages/connectors/mysql) | `easysql/connectors-mysql` | Local MySQL/MariaDB introspection + SELECT execution | | [`packages/connectors/postgres`](packages/connectors/postgres) | `easysql/connectors-postgres` | Local PostgreSQL introspection + SELECT execution | | [`packages/connectors/sqlite`](packages/connectors/sqlite) | `easysql/connectors-sqlite` | Local SQLite introspection + SELECT execution | | [`packages/common`](packages/common) | `easysql/common` | Shared code (SQL safety validation, credential sanitization) | | [`packages/schema-generation`](packages/schema-generation) | `easysql/schema-generation` | Raw introspection โ†’ API schema payload (deterministic, no I/O) | | [`packages/laravel`](packages/laravel) | `easysql/laravel` | Laravel service provider, manager and facade | ## Requirements - **PHP** >= 8.2 - **ext-json** - **guzzlehttp/guzzle** ^7.0 (client package) - **ext-pdo_mysql** (mysql connector), **ext-pdo_pgsql** (postgres connector), **ext-pdo_sqlite** (sqlite connector) - *(Optional)* **Laravel** ^11.0 || ^12.0 (for Service Provider and Facade) ## Installation --- ## Laravel Integration The SDK provides first-class support for Laravel with automatic package discovery, configuration publishing, and a dedicated `EasySQL` facade. ### 1. Publish Configuration (Optional) Publish the `easysql.php` configuration file: This creates `config/easysql.php` in your Laravel application. ### 2. Configure Environment Variables Add your credentials to your `.env` file: ### 3. Using the Facade --- ## Standalone PHP Usage ### Typed API Client (Recommended) Use the generated `Client` with typed methods for all endpoints: ### Automatic Token Refresh The typed `Client` supports a token store and refreshes the access token automatically (once) on a 401, persisting the new tokens: For raw Guzzle access, `EasySQLClient` wraps the same token manager: ### Typed DTOs The generated `packages/client/src/Models` classes hydrate an API response array into a typed object: ### Local Connectors + Schema Generation Introspect a local database and push only the schema to the API โ€” credentials never leave the machine: --- ## API Overview | Module | Available Methods | |---|---| | **Auth** | `refresh`, `logout`, `me`, `deleteMe`, `updateMe` | | **Queries** | `createQuery`, `listQueries`, `getQuery`, `answerQuery` | | **Connectors** | `listConnectors`, `createConnector`, `getConnector`, `getConnectorSchema`, `getSuggestions`, `updateConnector`, `deleteConnector`, `syncConnector` | | **Billing** | `getPlan`, `checkout`, `portal` | | **Dashboard** | `dashboardStats` | | **Health** | `health`, `healthHealth` | See [packages/client/docs/API.md](packages/client/docs/API.md) for full endpoint reference and parameters. --- ## Migration from the single-package layout (v1.x) Version 1.x shipped a single package `clearsoft/easysql-sdk` with namespace `Clearsoft\EasySQL\SDK`. The multipackage layout keeps that package as a meta-package (same name, same version line), so `composer require clearsoft/easysql-sdk` keeps working โ€” but the namespaces changed: | Before (v1.x) | After | |---|---| | `Clearsoft\EasySQL\SDK\Client` | `Clearsoft\EasySQL\Api\Client` | | `Clearsoft\EasySQL\SDK\Models\*` | `Clearsoft\EasySQL\Api\Models\*` | | `Clearsoft\EasySQL\SDK\Exceptions\ApiException` | `Clearsoft\EasySQL\Api\Exceptions\ApiException` | | `Clearsoft\EasySQL\SDK\EasySQLClient` | `Clearsoft\EasySQL\Api\Http\EasySQLClient` | | `Clearsoft\EasySQL\SDK\TokenStoreInterface` | `Clearsoft\EasySQL\Api\Http\TokenStoreInterface` | | `Clearsoft\EasySql\Laravel\*` | unchanged (now in `easysql/laravel`) | Connector methods now take their path parameters explicitly (this also fixes a v1.x bug where `getConnector('conn_1')` silently ignored the id and requested a literal `{connector_id}` URL): --- ## Samples Runnable examples for every package live in [`samples/`](samples) โ€” from a basic client call and token refresh to MySQL/PostgreSQL/SQLite introspection + sync and the Laravel integration. See the [samples README](samples/README.md). --- ## Development & Contributing Contributions are welcome! Please read our **[Contributing Guidelines](https://github.com/Clearsoft-net/easysql-php/blob/main/CONTRIBUTING.md)** for details on the development workflow and pull request process. Composer scripts mirror the common ones: `composer test`, `composer analyse`, `composer generate`. --- ## License This project is open source and licensed under the [MIT License](./LICENSE). Maintained by **[Clearsoft](https://clearsoft.net)**.

All versions of easysql-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
easysql/client Version ^2.0
easysql/schema-generation Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package clearsoft/easysql-sdk contains the following files

Loading the files please wait ...