jalismrs/stalactite-data-client
Composer 安装命令:
composer require jalismrs/stalactite-data-client
包简介
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
README 文档
README
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/jalismrs/stalactite-data-client.git"
}
],
"require": {
"jalismrs/stalactite-data-client": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: StalactiteToken $config = Jalismrs\Stalactite\Client\Data\Configuration::getDefaultConfiguration()->setApiKey('X-API-TOKEN', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Jalismrs\Stalactite\Client\Data\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-TOKEN', 'Bearer'); $apiInstance = new Jalismrs\Stalactite\Client\Data\Api\CustomersApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $create_customer_request = new \Jalismrs\Stalactite\Client\Data\Model\CreateCustomerRequest(); // \Jalismrs\Stalactite\Client\Data\Model\CreateCustomerRequest try { $result = $apiInstance->createCustomer($create_customer_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling CustomersApi->createCustomer: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://stalactite.jalis.pro/data
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CustomersApi | createCustomer | POST /customers | |
| CustomersApi | deleteCustomer | DELETE /customers/{uid} | |
| CustomersApi | getCustomer | GET /customers/{uid} | |
| CustomersApi | getCustomerBy | GET /customers/by | |
| CustomersApi | getCustomers | GET /customers | |
| CustomersApi | updateCustomer | PUT /customers/{uid} | |
| CustomersAccessApi | getCustomerAccessClearance | GET /customers/{customerUid}/access/{domainUid} | |
| CustomersAccessApi | getMyCustomerAccessClearance | GET /customers/me/access/{uid} | |
| CustomersMeApi | getMeAsCustomer | GET /customers/me | |
| CustomersRelationsApi | getCustomerRelations | GET /customers/{uid}/relations | |
| CustomersRelationsApi | getMyCustomerRelations | GET /customers/me/relations | |
| DomainsApi | createDomain | POST /domains | |
| DomainsApi | deleteDomain | DELETE /domains/{uid} | |
| DomainsApi | getDomain | GET /domains/{uid} | |
| DomainsApi | getDomainBy | GET /domains/by | |
| DomainsApi | getDomains | GET /domains | |
| DomainsApi | getDomainsNames | GET /domains/names | |
| DomainsApi | getDomainsNamesActive | GET /domains/names/active | |
| DomainsApi | updateDomain | PUT /domains/{uid} | |
| DomainsRelationsApi | addCustomerRelations | POST /domains/{uid}/relations/customers | |
| DomainsRelationsApi | addUserRelations | POST /domains/{uid}/relations/users | |
| DomainsRelationsApi | getDomainRelations | GET /domains/{uid}/relations | |
| HealthApi | getApiHealth | GET /health | |
| PermissionsApi | createPermission | POST /permissions | |
| PermissionsApi | deletePermission | DELETE /permissions/{uid} | |
| PermissionsApi | getPermission | GET /permissions/{uid} | |
| PermissionsApi | getPermissions | GET /permissions | |
| PermissionsApi | updatePermission | PUT /permissions/{uid} | |
| PostsApi | addPostPermissions | POST /posts/{uid}/permissions | |
| PostsApi | createPost | POST /posts | |
| PostsApi | deletePost | DELETE /posts/{uid} | |
| PostsApi | deletePostPermissions | DELETE /posts/{uid}/permissions | |
| PostsApi | getPost | GET /posts/{uid} | |
| PostsApi | getPostUser | GET /posts/{uid}/users | |
| PostsApi | getPosts | GET /posts | |
| PostsApi | updatePost | PUT /posts/{uid} | |
| RelationsApi | deleteDomainCustomerRelation | DELETE /relations/customers/{uid} | |
| RelationsApi | deleteDomainUserRelation | DELETE /relations/users/{uid} | |
| UsersApi | createUser | POST /users | |
| UsersApi | deleteUser | DELETE /users/{uid} | |
| UsersApi | getUser | GET /users/{uid} | |
| UsersApi | getUserBy | GET /users/by | |
| UsersApi | getUserSubordinates | GET /users/{uid}/subordinates | |
| UsersApi | getUsers | GET /users | |
| UsersApi | updateUser | PUT /users/{uid} | |
| UsersAccessClearancesApi | getMyAccessClearances | GET /users/me/access/{domainUid} | |
| UsersAccessClearancesApi | getUserAccessClearances | GET /users/{userUid}/access/{domainUid} | |
| UsersLeadsApi | addUserLeads | POST /users/{uid}/leads | |
| UsersLeadsApi | getUserLeads | GET /users/{uid}/leads | |
| UsersLeadsApi | removeUserLeads | DELETE /users/{uid}/leads | |
| UsersMeApi | getMeAsUser | GET /users/me | |
| UsersMeApi | getMyLeads | GET /users/me/leads | |
| UsersMeApi | getMyPosts | GET /users/me/posts | |
| UsersMeApi | getMySubordinates | GET /users/me/subordinates | |
| UsersPostsApi | addUserPosts | POST /users/{uid}/posts | |
| UsersPostsApi | getUserPosts | GET /users/{uid}/posts | |
| UsersPostsApi | removeUserPosts | DELETE /users/{uid}/posts | |
| UsersRelationsApi | getMyDomainRelations | GET /users/me/relations | |
| UsersRelationsApi | getUserDomainRelations | GET /users/{uid}/relations |
Models
- AccessClearance
- AddCustomerRelationsRequest
- AddUserRelationsRequest
- ApiError
- CreateCustomerRequest
- CreateDomainRequest
- CreatePermissionRequest
- CreatePostRequest
- CreateUserRequest
- Customer
- Customer2
- Customer3
- Domain
- Domain2
- DomainCustomerRelation
- DomainCustomerRelation2
- DomainCustomerRelation3
- DomainUserRelation
- DomainUserRelation2
- DomainUserRelation3
- GetCustomersResponse
- GetDomainRelationsResponse
- GetDomainsResponse
- GetUsersResponse
- HealthResponse
- PaginationMetas
- PaginationMetas2
- Permission
- Permission2
- Post
- Post2
- UpdateCustomerRequest
- UpdateDomainRequest
- UpdatePermissionRequest
- UpdatePostPermissionsRequest
- UpdatePostRequest
- UpdateUserLeadsRequest
- UpdateUserPostsRequest
- UpdateUserRequest
- User
- User2
- User3
- User4
Authorization
Authentication schemes defined for the API:
StalactiteToken
- Type: API key
- API key parameter name: X-API-TOKEN
- Location: HTTP header
HealthToken
- Type: API key
- API key parameter name: X-HEALTH-TOKEN
- Location: HTTP header
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.5.0- Package version:
1.5.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
jalismrs/stalactite-data-client 适用场景与选型建议
jalismrs/stalactite-data-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.45k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「rest」 「api」 「sdk」 「openapi」 「openapitools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jalismrs/stalactite-data-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jalismrs/stalactite-data-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jalismrs/stalactite-data-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
BlockCypher's PHP SDK for REST API
Helper classes for creating cookie headers
统计信息
- 总下载量: 1.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2021-03-04