3
0
Fork 0
This commit is contained in:
Александр Рыбкин 2019-12-23 15:59:40 +03:00
commit 56b42000c0
3 changed files with 66 additions and 0 deletions

14
AutoloadExample.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace dominion\cron;
/**
* This is just an example.
*/
class AutoloadExample extends \yii\base\Widget
{
public function run()
{
return "Hello!";
}
}

31
README.md Normal file
View File

@ -0,0 +1,31 @@
Агент для работы с кроном
=========================
Функционал для работы с кроном
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist dominion/yii2-cron "*"
```
or add
```
"dominion/yii2-cron": "*"
```
to the require section of your `composer.json` file.
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
<?= \dominion\cron\AutoloadExample::widget(); ?>```

21
composer.json Normal file
View File

@ -0,0 +1,21 @@
{
"name": "dominion/yii2-cron",
"description": "Функционал для работы с кроном",
"type": "yii2-extension",
"keywords": ["yii2","extension"],
"license": "MIT",
"authors": [
{
"name": "Rybkin Sasha",
"email": "ribkin@dominion.ru"
}
],
"require": {
"yiisoft/yii2": "~2.0.0"
},
"autoload": {
"psr-4": {
"dominion\\cron\\": ""
}
}
}