From 2acc6826ab510140c8a26886e2ec4db3bb1bceee Mon Sep 17 00:00:00 2001 From: nasser Date: Thu, 14 Sep 2017 20:13:37 +0430 Subject: [PATCH] fixbug timezone and add facades --- README.md | 1 + composer.json | 3 ++- src/Facades/Verta.php | 17 +++++++++++++++++ src/Verta.php | 1 - src/helpers.php | 4 ++-- 5 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 src/Facades/Verta.php diff --git a/README.md b/README.md index d9a9c19..01264d1 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ create object with pass string ```php $v = new Verta('2016-12-27 14:12:32'); $v = Verta::instance('2016-12-25 11:12:36'); +$v = Facades\Verta::instance('2016-12-25 11:12:36'); ``` create object with timestamp diff --git a/composer.json b/composer.json index 91ae7ae..b772316 100755 --- a/composer.json +++ b/composer.json @@ -10,7 +10,8 @@ ], "keywords": ["Laravel","Date","Datetime","Jalali", "Shamsi", "Verta"], "require": { - "php": ">=5.5" + "php": ">=5.5", + "illuminate/support": "^5.0" }, "require-dev" : {}, "autoload": { diff --git a/src/Facades/Verta.php b/src/Facades/Verta.php new file mode 100644 index 0000000..0c4f546 --- /dev/null +++ b/src/Facades/Verta.php @@ -0,0 +1,17 @@ +