Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 1.74 KB

README.md

File metadata and controls

72 lines (46 loc) · 1.74 KB

[EXPERIMENTAL] PHPinnacle Mure

Latest Version on Packagist Total Downloads Software License

PHPinnacle Mure provide C# like extension classes with help of Z-Engine library.

Install

Via Composer

$ composer require phpinnacle/mure

Basic Usage

<?php

require __DIR__ . '/vendor/autoload.php';

class MyDate
{
    public static function addDays(\DateTime $date, int $num)
    {
        $date->modify(sprintf('+%d days', $num));

        return $date;
    }
}

\PHPinnacle\Mure\ExtensionManager::init(MyDate::class);

echo (new \DateTime())->addDays(2)->format('d.m.Y');

More examples can be found in examples directory.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.