File: phptricks

Recommend this page to a friend!
  Classes of mohammad anzawi  >  PHP PDO database class  >  phptricks  >  Download  
File: phptricks
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP PDO database class
Access databases using PDO
Author: By
Last change:
Date: 3 months ago
Size: 703 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php
// application.php

require __DIR__.'/vendor/autoload.php';

use
PHPtricks\Orm\Command\Alter;
use
PHPtricks\Orm\Command\Create;
use
PHPtricks\Orm\Command\Drop;
use
PHPtricks\Orm\Command\Config\GetConfig;
use
PHPtricks\Orm\Command\Make;
use
PHPtricks\Orm\Command\Migrate;
use
PHPtricks\Orm\Command\Model;
use
Symfony\Component\Console\Application;

$application = new Application("PHPtricks-orm", "5.0.0");

// register commands
$application->add(new Make());
$application->add(new Migrate());
$application->add(new Create());
$application->add(new Alter());
$application->add(new Drop());
$application->add(new GetConfig());
$application->add(new Model());

$application->run();


For more information send a message to info at phpclasses dot org.