Download the PHP package tacoberu/domains without Composer

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

Criteria

Build Status

PHP DSL for quering between app and business layers.

Inspirated by SQL, LINQ, or Dibi. Used for quering to database, file, filesystem, xml, anything.

Example

Příklad dotazu na soubor - dvacet souborů menších jak 400B včetně obsahu a informace o souboru:

Criteria::range('IO/File', 20)
    ->with('fileInfo')
    ->with('content')
    ->where('fileInfo.size <', 400);

Criteria::range('Article', 20)
    ->with('fileInfo')
    ->with('content')
    ->where('fileInfo.size <', 400)
    ->orderByDesc('fileInfo.size');

Criteria::count('Article')
    ->with('fileInfo')
    ->with('content')
    ->where('fileInfo.size <', 400);

Criteria::first('Article')
    ->with('fileInfo')
    ->with('content')
    ->where('fileInfo.size <', 400);

$f = (new Filter('Album'))
    ->where('created <', new DateTime())
    ->where('author.name LIKE', 'Sinead%');
$f = Parser::parseFilter('Album WHERE created < ? AND name LIKE ?', new DateTime(), 'Sinead%');
$repository->range($f);

function range(Filterable $filter = Null, Sortable $sort = Null, $limit = Null, $offset = Null)
{

    (new Validation($schema))->assertFilter($filter);
    $con = $this->dibi;

    foreach ($filter as $name as $args) {
        switch($name) {
            'author':
                $con->leftJoin(...);
                break;
        }
    }
    foreach ($filter as $name as $args) {
        if ($args instanceof Cond) {
            ...
        }
        else {
            switch($name) {
                'author.name':
                    $con->where('b.name = ?', $args);
                    break;
                default:
                    $con->where("a.{$name} = ?", $args);
            }
        }
    }
}

Pseudocode:

-- Posledních pět článků konkrétního uživatele.
article[user.id = 42|limit 5]{*}

-- Všechny kočky, mající více jak 2 černé koťata. Přičemž nás zajímá celkový počet koček, jméno kočky, a barva kočky.
cats[children[color = black]{count} > 2]{children.count, name, color}

-- Patnáct uživatelů z mariánek. U každého chceme krom základních atributů také ulici a město z adresy.
-- Dále chceme pro každého pět (povolených) posledních článků. Z každého článku chceme jen jméno a popis.
users[address.city = "marianky"|limit 15]{*, address{street, city}, article[enabled = true|sort-desc-by date|limit 5]{name, description}}

PHP Code:

// Posledních pět článků konkrétního uživatele.
Criteria::range('article', [
    Condition::is('user.id', 42),
    Range::limit(5)
],
['*']);

// Všechny kočky, mající více jak 2 černé koťata. Přičemž nás zajímá celkový počet koček, jméno kočky, a barva kočky.
// cats[children[color = black]{count} > 2]{children.count, name, color}
// cats[children{count} > 2]{children.count, name, color}
// [children[color = black]{count} > 2]
// [children{count} > 2]
Criteria::range('cat', [
    Condition::largerThan(
        Criteria::range('cat', []
    , 2),
],
['children.count', 'name', 'color']);

// AND
Criteria::range('article', [
    Condition::like('user.name', 'Pepa'),
    Condition::like('user.name', 'Pavel'),
],
['*']);

// OR
Criteria::range('article', new ConditionOr([
    Condition::like('user.name', 'Pepa'),
    Condition::like('user.name', 'Pavel'),
]),
['*']);

Selector

Helper for selectin attribs in criteriam

Validator

Slouží k validaci criteria. Omezujeme tím prvky, nebo podmínky které může klient uvádět.

Formater

Překládá kriterium na jiný formát. Například pro dibi, pro Doctrine a podobně.

TODO


All versions of domains with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 tacoberu/domains contains the following files

Loading the files please wait ....