Download the PHP package jakolab/howl-orm without Composer
On this page you can find all versions of the php package jakolab/howl-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jakolab/howl-orm
More information about jakolab/howl-orm
Files in jakolab/howl-orm
Package howl-orm
Short Description Library to mapping your database and manipulate data without SQL, just OOP.
License MIT
Informations about the package howl-orm
Howl-ORM
What is?
Howl-ORM (Object Relational Model) was built to make the data layer of your applications easy and fast. Based on the active record pattern Howl-ORM makes easy:
- Connect to database
- List and find records.
- Store new records.
- Update existing records.
- Delete existing records.
Also Howl-ORM allows you to filter records using clauses such as JOINS and GROUPS, the result can be ORDERED, LIMITED and COUNTED.
How to install and initialize
- Download Howl-ORM as a zip and extract the files into your project libraries folder.
- Require the HowlAutoload.php file from the Howl-ORM package.
- Initialize the Howl Autoload.
- Instance Howl Database manager.
- Load the Database driver.
Done, now you are connected to the database! An optional way to do exactly the same as above is:
Howl use the singleton patter to keep only one instance of the database connection, using the getInstance funciton you can get the unique instance of the Dadatabase manager en execute custom queries if you want.
Mapping your tables (Models)
To map your database tables is very easy.
- Create a file with name of the table into a directory named model (I recommend you to use PascalCase to name your models).
- The file must contains a namespace Model.
- The file must have a class with the same name as the file.
- The class must extends from Howl\Model.
- The class must contains a property named table and it's value must be the name of the table that it represents in database.
Model/Items.php
app/index.php