Download the PHP package micoli/elql without Composer

On this page you can find all versions of the php package micoli/elql. 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 elql

Micoli\Elql

A flat database manager. Each models are read/persisted in a (YAML|JSON) file.

That library is based upon symfony/serializer and symfony/expression-language components. So basically, every model that can be serialized/deserialized by those components wan be used.

When selecting, updating, deleting records, each constraints are expressed as an expression-language string. A record object is available in the constraint expression and represent the evaluated record.

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Installation

This library is installable via Composer:

Requirements

This library requires PHP 8.0 or later.

Project status

While this library is still under development, it is still in early development status. It follows semver version tagging.

Quick start

Create an instance of Elql manager

Database are per directory. all models are persisted in a separate file.

The persisted records are loaded in memory before each CRUD action if they were not already loaded.

Record in memory addition

Add some record of proper serializable model.

Basic crud function are available

Select

`

Update

An updater callback is used to help case/case model updates

Delete

Count

You need to flush the in-memories tables to disk to persist them

Attributes

Table($name)

Instead of using the class-name as filename, you can specify a specific name using that attribute.

N.B.:

if you don't want to use that attribute, you can specify some filenames in the MetadataManager constructor.

In that was, when Foo records will be persisted, the filename will be foo_table.yaml.

Unique($expression, $indexName)

Before adding a record to a model table, the unique constraints are evaluated to guarantee uniqueness of records.

A Micoli\Elql\Exception\NonUniqueException are triggered in case of a constraint is not respected.


All versions of elql with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/expression-language Version ^7.0
symfony/filesystem Version ^7.0
symfony/lock Version ^7.0
symfony/property-access Version ^7.0
symfony/property-info Version ^7.0
symfony/serializer Version ^7.0
symfony/yaml Version ^7.0
doctrine/annotations Version ^2.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 micoli/elql contains the following files

Loading the files please wait ....