1. Go to this page and download the library: Download phpbook/database library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
//Get a Singleton Doctrine Entity Manager of a Connection or Null
\PHPBook\Database\EntityManager::get('main');
//Get a Singleton Default Doctrine Entity Manager or Null
\PHPBook\Database\EntityManager::get();
//Execute Doctrine Migration of a Connection. Updates to the better version available.
\PHPBook\Database\Migration::execute('main');
//Execute Doctrine Migration in Default Connection. Updates to the better version available.
\PHPBook\Database\Migration::execute();
//Execute Doctrine Migration of a Connection. Updates or Downgrades to the version 201010101010.
\PHPBook\Database\Migration::execute('main', '201010101010');
//Execute Doctrine Migration in Default Connection. Updates or Downgrades to the version 201010101010.
\PHPBook\Database\Migration::execute(Null, '201010101010');
//Generate Doctrine Proxies of Entities in Default Connection.
//The Directory will be cleared recursively before generate, so you should have a unique folder to this proxies.
\PHPBook\Database\Proxy::generate();
//Generate Doctrine Proxy of Entities in a Connection.
//The Directory will be cleared recursively before generate, so you should have a unique folder to this proxies.
\PHPBook\Database\Proxy::generate('main');
//Generate an UUID version 1
\PHPBook\Database\UUID::generate('prefix-string', 'node-alias');
\PHPBook\Database\UUID::generate('prefix-string', '');
\PHPBook\Database\UUID::generate('', 'node-alias');
\PHPBook\Database\UUID::generate();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.