Skip to content

Repository files navigation

MySQL xdevapi-php

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

About

Simple PHP Library for mysql-xdevapi session

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages