ushios/shape

Shapes library which calculate rectangle scale and more.

0.0.6 2015-11-10 04:00 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:53:06 UTC


README

Build Status Coverage Status Dependency Status Codacy Badge

Calculates your shapes.

Installation

Using composer

{
    ...
    "require": {
        "ushios/shape": "0.*"
    }
}

@see Packagist

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