flyo / nitro-php
Flyo Nitro PHP SDK
Installs: 3 162
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/flyo/nitro-php
Requires
- php: ^8.3
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^12
README
🚀 Supercharge your PHP applications with Flyo Nitro! This SDK provides a clean, intuitive interface to interact with the Flyo Nitro API, enabling you to manage content, configurations, and entities with ease.
📦 Installation
Install the SDK via Composer:
composer require flyo/nitro-php
🚀 Quick Start
Get up and running in just a few lines of code:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure authentication $config = new Flyo\Configuration(); $config->setApiKey('token', 'YOUR_FLYO_AUTH_TOKEN'); Flyo\Configuration::setDefaultConfiguration($config); // Make your first API call $api = new Flyo\Api\ConfigApi(); try { $result = $api->config(); print_r($result); } catch (Exception $e) { echo 'Exception when calling ConfigApi->config: ', $e->getMessage(), PHP_EOL; }
📚 Available APIs
The SDK provides access to the following API endpoints:
| API | Description | Source |
|---|---|---|
| ConfigApi | Retrieve configuration and settings | lib/Api/ConfigApi.php |
| EntitiesApi | Manage and query entities | lib/Api/EntitiesApi.php |
| PagesApi | Handle page content and structure | lib/Api/PagesApi.php |
| SearchApi | Perform content searches | lib/Api/SearchApi.php |
| SitemapApi | Generate and manage sitemaps | lib/Api/SitemapApi.php |
| VersionApi | Check API version information | lib/Api/VersionApi.php |
📖 Documentation
For comprehensive guides, examples, and API reference: