nodeless-io/nodeless-php
最新稳定版本:0.0.1
Composer 安装命令:
composer require nodeless-io/nodeless-php
包简介
Nodeless.io PHP client library.
README 文档
README
How to use with composer
composer require nodeless-io/nodeless-php
If you use some framework or other project you likely are ready to go. If you start from scratch make sure to include Composer autoloader.
require __DIR__ . '/../vendor/autoload.php';
How to use without composer (not recommended)
In the src directory we have a custom autoload.php which you can require and avoid using composer if needed.
// Require the autoload file. require __DIR__ . '/../src/autoload.php'; // Example to get all stores. $apiKey = ''; $host = ''; // e.g. https://nodeless.io try { $client = new \NodelessIO\Client\Store($host, $apiKey); var_dump($client->getStores()); } catch (\Throwable $e) { echo "Error: " . $e->getMessage(); }
FAQ
Where to get the API key from?
Contribute
We run static analyzer Psalm and PHP-CS-fixer for codestyle when you open a pull-request. Please check if there are any errors and fix them accordingly.
Codestyle
We use PSR-12 code style to ensure proper formatting and spacing. You can test and format your code using composer commands. Before doing a PR you can run composer cs-check and composer cs-fix which will run php-cs-fixer.
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-10