Download the PHP package blackcube/active-record without Composer

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

Blackcube ActiveRecord

Scoped queries, elastic dynamic attributes, Hazeltree nested sets — a toolkit for ActiveRecord.

Packagist Version

Quickstart

Three building blocks

Scoped queries

Named, composable filters. PHP 8 named arguments flow through __call into typed parameters.

QualifyColumnTrait auto-prefixes column names with the table qualifier. Scopes write simple names, qualification is transparent. No ambiguous column errors in JOINs.

Elastic — Dynamic JSON Schema attributes

JSON column + JSON Schema = dynamic attributes without EAV.

Hazeltree — Nested sets with rational numbers

Tree structure in RDBMS. Read branches in one query. Write without global renumbering.

Based on Dan Hazel's research (2008).

Combined — Elastic + Hazeltree

For models that need both dynamic attributes and tree structure:

Trait architecture

Three layers, zero collision:

Layer Purpose Example
Base traits Prefixed methods, protected, no collision BaseElasticTrait, BaseHazeltreeTrait
Composite traits __get/__set dispatch, one per model ElasticTrait, HazeltreeTrait, HazeltreeElasticTrait
Abstract classes Convenience, just use Trait AbstractElasticActiveRecord, AbstractHazeltreeElasticQuery

Base traits use tryElasticGet() / tryHazeltreeGet() returning bool. Composite traits chain: elastic, then hazeltree, then parent::. No insteadof, no MagicCompose needed.

Tests

500 tests, 2726 assertions across 17 suites.

Documentation

License

BSD-3-Clause. See LICENSE.md.

Author

Philippe Gaultier [email protected]


All versions of active-record with dependencies

PHP Build Version
Package Version
Requires ext-intl Version *
swaggest/json-schema Version ^0.12.43
yiisoft/active-record Version ^1.0
yiisoft/cache Version ^3.2
yiisoft/db Version ^2.0
yiisoft/validator Version ^2.5
php Version ^8.1
yiisoft/event-dispatcher 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 blackcube/active-record contains the following files

Loading the files please wait ...