exavault/evapi-php
最新稳定版本:v2.1.6
Composer 安装命令:
composer require exavault/evapi-php
包简介
PHP SDK for ExaVault API
关键字:
README 文档
README
ExaVault PHP API Library - v2 API
Introduction
Welcome to ExaVault's PHP code library for our v2 API. Our v2 API will allow you to interact with all aspects of the service the same way our web portal would. The library is generated from our API's public swagger YAML file.
Requirements
To use this library, you'll need PHP 5.5 (or greater) installed as well as composer.
You will also need an ExaVault account, as well as an API key and access token.
Installing the Code Library
Option 1 - Using Composer
You can use composer to add this library to your project by running this command in your project folder:
% composer require exavault/evapi-php
Option 2 - Manual Installation
Alternatively, you can clone the github repo and then run composer install in the evapi-php directory to install dependencies.
Sample Code
For a gentle introduction to using PHP code with ExaVault's API, check out our code samples. Follow the instructions in that repository's README to run the sample scripts, which will demonstrate how to use several of the generated PHP classes to interact with your ExaVault account.
Writing Your Own Code
When you're ready to write your own code using this library, you'll need to:
- Install our code library in your project, either with
composer require exavault/evapi-phpor by downloading this repository and runningcomposer install - Include the generated
vendor/autoload.phpto the top of your script - Provide your API key and access token with every function method on the Api classes, which are in the ExaVault\Api namespace.
- Whenever you instantiate an Api object (ResourcesApi, UsersApi, etc.), override the configuration to point the code at the correct API URL:
$account_url = "https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/"; $accountApi = new ExaVault\Api\AccountApi( new GuzzleHttp\Client(), (new ExaVault\Configuration())->setHost($account_url) );
$resourcesApi = new ExaVault\Api\ResourcesApi( new GuzzleHttp\Client(), (new ExaVault\Configuration())->setHost($account_url) );
$usersApi = new ExaVault\Api\UsersApi( new GuzzleHttp\Client(), (new ExaVault\Configuration())->setHost($account_url) );
If you'd like to see this done in sample code, please take a look at our code samples.
Author
exavault/evapi-php 适用场景与选型建议
exavault/evapi-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12.7k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「file transfer」 「exavault」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 exavault/evapi-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 exavault/evapi-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 exavault/evapi-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Przelewy24 driver for the Omnipay payment processing library
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Dibs D2 driver for the Omnipay payment processing library
Laravel Media Popup to upload/view the files
PMVC Plugin for File information
Mapper for accessing resources in KWCMS
统计信息
- 总下载量: 12.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-05