nexilo/xdevapi-php
Composer 安装命令:
composer require nexilo/xdevapi-php
包简介
Low level PHP Library for mysql-xdevapi
README 文档
README
Simple wrapper for xdevapi getSession function in PHP pecl extension
Installation via Composer
The recommended method to install NEXILO XDevAPI-PHP is through Composer.
-
Add
nexilo/xdevapi-phpas a dependency in your project'scomposer.jsonfile:{ "require": { "nexilo/xdevapi-php": "~1.1" } } -
Download and install Composer:
curl -s http://getcomposer.org/installer | php -
Install your dependencies:
php composer.phar install
-
Require Composer's autoloader
Composer also prepares an autoload file that's capable of autoloading all the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:
<?php use Nexilo\XdevApiClientBuilder; require 'vendor/autoload.php'; $session = XdevApiClientBuilder::getInstance('yourDsnHere')->getSession();
You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at getcomposer.org.
统计信息
- 总下载量: 503
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL
- 更新时间: 2018-05-14