dev-master
9999999-dev https://github.com/hatwebtech/dalhat dal (database abstraction layer) for PHP 5.3+
Apache 2.0
The Requires
- php >=5.3.0
by Panajotis Zamos
dal
hat dal (database abstraction layer) for PHP 5.3+
dal is data abstraction library written in PHP. It's lightweight (half a dozen classes) and fast. It is inspired by Doctrine, (*2)
//example $q = \hatwebtech\dal\DAL::query() ->select('u.id, u.name') ->from('User u') ->where('u.id =?', 7) ;
dal works with PHP 5.3 or later., (*3)
The recommended way to install HATwebtech DAL is through Composer. Just create a composer.json
file and run the php composer.phar install
command to install it:, (*4)
{ "require": { "hatwebtech/dal": "dev-master" } }
$dsn = 'pgsql:dbname=example_db;host=127.0.0.1'; $dbh = new PDO($dsn', 'postgres', 'pass123'); \hatwebtech\dal\DAL::setDbh($dbh); \hatwebtech\dal\DAL::setTablePath(APPPATH . 'tables/'); \hatwebtech\dal\DAL::setTableNamespace('\\dal_test\\tables\\');
coming soon..., (*5)
If you discover any bugs, feel free to create an issue on GitHub fork and send us a pull request., (*6)
Issues List., (*7)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Apache 2.0, (*8)
hat dal (database abstraction layer) for PHP 5.3+
Apache 2.0
dal