Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
/ model Public archive

πŸ’€ [DISCONTINUED] View-Model + Model-View layer to Nette Framework (@nette). Use contributte/utils.

License

Notifications You must be signed in to change notification settings

contributte/model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Website πŸš€ contributte.org | Contact πŸ‘¨πŸ»β€πŸ’» f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ This project is no longer being maintained. Please use contributte/utils.
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.


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