ushios / shape
Shapes library which calculate rectangle scale and more.
0.0.6
2015-11-10 04:00 UTC
Requires
- php: >=5.3.3
Requires (Dev)
- codacy/coverage: dev-master
- fabpot/php-cs-fixer: *
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: 4.8.*
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-12-21 19:26:20 UTC
README
Calculates your shapes.
Installation
Using composer
{
...
"require": {
"ushios/shape": "0.*"
}
}
Usage
<?php
use Ushios\Shape\Rectangle;
use Ushios\Shape\Calculator\Scale;
$base = new Rectangle(200, 400);
$target = new Rectangle(400, 500);
$newRect = Scale::fillRectWithRect($base, $target); // Got width:200, height:250 rectangle
Developers
Test
$ vendor/bin/phpunit
Format
$ vendor/bin/php-cs-fixer fix
Make API Document using phpDocumenter
$ vendor/bin/phpdoc