php-extended / php-score-factory-object
This package is abandoned and no longer maintained.
The author suggests using the php-extended/php-score-object package instead.
A library that implements the php-score-factory-interface package.
3.1.17
2021-06-24 18:38 UTC
Requires
Requires (Dev)
README
A library that implements the php-score-factory-interface package.
Installation
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-score-factory-object": "^3",
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
Basic Usage
You may use this library the following way :
use
$collectionFactory = new ScoreCollectionFactory();
$collection = $collectionFactory->createScoreCollection();
$scoreFactory = new NumericScoreFactory();
foreach($values as $value)
{
$collection->add($scoreFactory->createScore([$value]));
}
License
MIT (See license file).