Skip to content

仓库 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.

安全

If you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker.

Credits

License

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

关于

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

关注者

0 watching

复刻s

发布

Used by

贡献者

Languages