Download the PHP package tarasmatskovich/house-orm without Composer

On this page you can find all versions of the php package tarasmatskovich/house-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package house-orm

House ORM

House ORM is a simply PHP object relationship mapping library for wotk with data in database.

Available drivers

Installing

Usage

For example in datatabase exists table users with fields id, name. You have to create corresponding entity Class and specify fields mapping:

Important part of entity class is docs annotations. It uses for mapping specifing First required type of entity annotations is Gateway in format.

For example if you have table in database named users you have to write:

Second type of entity annotations is Field

You should specify this annotation on entity class field which want to map:

Then you have to create repository (mapper) class for work with corresponding entity wich extends houseorm/mapper/DomainMapper class. Lets continue exmple with users:

Then you should to register this repository (mapper) in entity manager. This is config params:

House ORM have two drivers. First for real with real mysql database:

Second for tests (All data will be save on PHP proccess memory and you do not need real database):

Creating entity manager and register UserRepository and User entity:

Then you can get access to repository:

Find

To find user entity with primary key (default id):

Also you can find entity through criteria

Save

To save new entity you have to create new object of entity class, fill fields and save through repository:

Update

To update entity you may change some fields and save entity object through repository:

Delete

To delete entity:

Relations

For specifying relations you have to use special annotations. Exist two types of relations:

Simple relations

Specifying by special annotation Relation. This is our example with users. User entity class:

And new entity Comment class:

Complicated relations

To specify complicated relations you have to use special annotation ViaRelation Example - entity Role related with User through binding entity UserRole User entity class:

UserRole entity:

Role entity class:

Cache

You can use cache to increase performance of ORM work. House ORM support two drivers of cache:

Usage Redis cache:


All versions of house-orm with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
ext-json Version *
ext-pdo Version *
tarasmatskovich/annotations Version ^1.9
psr/log Version ^1.1
predis/predis Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tarasmatskovich/house-orm contains the following files

Loading the files please wait ....