Skip to content

Simple PHP Library for mysql-xdevapi session update to PHP 8

Notifications You must be signed in to change notification settings

vcsvinicius/xdevapi-php-8

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';
    
        $client = 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](https://nexilo.uk/static/nexilo_new.svg =250x)

About

Simple PHP Library for mysql-xdevapi session update to PHP 8

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%