Skip to content

phpinnacle/mure

Repository files navigation

[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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages