This package is abandoned and no longer maintained. The author suggests using the contributte/utils package instead.

View-model and model tools for Nette Framework.

v0.2.0 2019-06-16 14:05 UTC

This package is auto-updated.

Last update: 2021-06-25 18:07:35 UTC


README

68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77 68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Disclaimer

Composer contributte/model
Version
PHP
License

Versions

State Version Branch Nette PHP
dev ^0.3 master 3.0+ ^7.2
stable ^0.2 master 3.0+ ^7.2
stable ^0.1 master 2.4 >=7.1

Usage

Collections

LazyCollection

Initializes data only when required.

use Contributte\Model\ViewModel\Collections\LazyCollection;

$items = LazyCollection::fromCallback(callback $datasource);

foreach($items as $item) { // Datasource callback is called on first access

}

Values

Email

use Contributte\Model\Values\Email;

$email = new Email('foo@example.com'); // Validate email format
$value = $email->get(); // Get value
$equal = $email->equal(new Email('foo@example.com')); // Compare values of objects

Development

This package was maintain by these authors.

538058?v=3&s=80

Consider to support contributte development team. Also thank you for being used this package.