Download the PHP package janisbiz/light-orm without Composer

On this page you can find all versions of the php package janisbiz/light-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 light-orm

Light ORM

Latest Stable Version codecov Build Status Total Downloads Deps Mutation testing badge Scrutinizer Code Quality

A light ORM for php with easy to use query builder, repository generator and connection pool manager.

Installing

composer require janisbiz/light-orm

About

light-orm has been used for a while in some of my work related projects. As it was growing, I decided to open-source it for the rest of community. It has good unit test coverage and a great support for integration testing together with desired DMS using Behat.

Currently these DMS are supported:

There is still a lot work to do, so it would be great to have some contributors for future improvements

Examples

Connection pool

Connection pool is a singleton (yes I know...), which holds all the DMS connections used by ORM. To set-up connection pool you need to create a config for your DMS. Afterwards, you can add this config to connection pool, and it will establish connection to server only when it is required. To set-up connection pool, see example below:

Generator

Generator is built in repository and entity class generator. With generator, it is possible to make ORM easy to use. To use generator, you need to have pre-configured connection pool or one connection. To configure generator, see example below:

Repository & Query Builder

Repository is place where you can call query builder and then execute it against your configured DMS. Repository supports all basic CRUD actions against DMS, as well, it has built in paginator for result set pagination and result set count. To use query builder on repository, please see example below:

More examples?

To see full power of light-orm, please see test cases:

Running tests

There are two ways to run tests: 1) By using docker containers:

TODO

1) Add support for other DMS than MySQL (preferably - Postgres) 2) Add migration support 3) Add event dispatcher


All versions of light-orm with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-pdo Version *
janisbiz/heredoc Version ^1.0
psr/log Version ^1.0
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 janisbiz/light-orm contains the following files

Loading the files please wait ....