2017 © Pedro Peláez
 

library cumulus

A set of utilities for modern development.

image

dakujem/cumulus

A set of utilities for modern development.

  • Thursday, May 31, 2018
  • by dakujem
  • Repository
  • 1 Watchers
  • 0 Stars
  • 635 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 27 % Grown

The README.md

☁ Cumulus

PHP from Packagist PHP Test Coverage Status, (*1)

A set of plug-in utilities for easier development of cloud-enabled software., (*2)

💿 composer require dakujem/cumulus, (*3)

📒 Changelog, (*4)

Documentation

Included classes: - Pipeline - 👉 Middleware and Pipelines - a class for middleware and pipelines - Dsn - 👉 Data Source Name - a DSN configuration wrapper and parser - LazyIterator - 👉 LazyIterator - an iterator for on-demand data provisioning, (*5)

As of now, the library has no external dependencies., (*6)

Compatibility

dakujem/cumulus PHP
^2.0 ^8 onwards
^1.5, ^1.6 7.2, 7.3, 7.4, 8.0
^1.4 7.2, 7.3, 7.4

Examples

Pipelines & middleware, (*7)

$foobarSuffixTube = Pipeline::tube([
    function (string $a): string {
        return $a . 'foo';
    },
    function (string $a): string {
        return $a . 'bar';
    },
]);
$foobarSuffixTube('iam'); // 'iamfoobar'

$foobarPrefixMiddleware = Pipeline::onion([
    function (string $a, callable $next): string {
        return $next('bar' . $a);
    },
    function (string $a, callable $next): string {
        return $next('foo' . $a);
    },
]);
$foobarPrefixMiddleware('youare'); // 'foobaryouare'

More in the documentation here: Middleware and Pipelines., (*8)

Dsn, (*9)

$dsn = new Dsn('mysqli://john:secret@localhost/my_db');

// with optional default values
$driver = $dsn->get('driver', 'mysqli');
$port = $dsn->get('port', 3306);
// without optional defaults
$user = $dsn->get('username');
// using magic and array accessors:
$user = $dsn->username;
$user = $dsn['username'];
$pass = $dsn->password ?? '';

More in the documentation here: Dsn (Data Source Name)., (*10)

Testing

Run unit tests using the following command:, (*11)

$ composer test, (*12)

Contributing

Ideas or contribution is welcome. Please send a PR or file an issue., (*13)

The Versions

31/05 2018

dev-master

9999999-dev

A set of utilities for modern development.

  Sources   Download

MIT BSD-2-Clause GPL-3.0 GPL-2.0 GNU GPL V3

The Requires

  • php ^7.0

 

The Development Requires

by Andrej Rypák

microservice cloud utility iterator utilities heroku

17/01 2018

1.0

1.0.0.0

Utilities to help with deployment to cloud platforms.

  Sources   Download

MIT BSD-2-Clause GPL-3.0 GPL-2.0

The Requires

  • php ^7.0

 

The Development Requires

by Andrej Rypák

cloud utility utilities heroku

18/10 2017

0.2

0.2.0.0

Utilities to help with deployment to cloud platforms.

  Sources   Download

GNU GPL V3

The Requires

  • php ^7.0

 

The Development Requires

by Andrej Rypák

cloud utility utilities heroku

05/06 2017

0.1

0.1.0.0

Utilities to help with deployment to cloud platforms.

  Sources   Download

GNU GPL V3

The Requires

  • php ^7.0

 

The Development Requires

by Andrej Rypák

cloud utility utilities heroku