nexilo/xdevapi-php

Low level PHP Library for mysql-xdevapi

1.2 2018-05-14 18:04 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:14:35 UTC


README

Build Status

Simple wrapper for xdevapi getSession function in PHP pecl extension

Installation via Composer

The recommended method to install NEXILO XDevAPI-PHP is through Composer.

  1. Add nexilo/xdevapi-php as a dependency in your project's composer.json file:

        {
            "require": {
                "nexilo/xdevapi-php": "~1.1"
            }
        }
  2. Download and install Composer:

        curl -s http://getcomposer.org/installer | php
  3. Install your dependencies:

        php composer.phar install
  4. 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.

Web Applications Special thanks for Symfony.Software application developers