From 61e865ec6d4a10db02bec237e3fe356b8b5a2c78 Mon Sep 17 00:00:00 2001 From: yuuki takezawa Date: Wed, 4 Feb 2015 23:43:15 +0900 Subject: [PATCH 1/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b698bf0..09fb51f 100644 --- a/composer.json +++ b/composer.json @@ -40,5 +40,5 @@ "tests/TestCase.php" ] }, - "minimum-stability": "dev" + "minimum-stability": "stable" } From 46eb489c0ed454f7bd600c7ddf44baa4429564e9 Mon Sep 17 00:00:00 2001 From: yuuki takezawa Date: Wed, 4 Feb 2015 23:47:41 +0900 Subject: [PATCH 2/3] Update composer.json --- composer.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 09fb51f..7a759b3 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,12 @@ "smarty/smarty": "3.*@stable" }, "require-dev": { - "predis/predis": "*@stable", - "symfony/framework-bundle": "2.*@stable", - "symfony/console": "2.*@stable", - "phpunit/phpunit": "4.*@stable", - "mockery/mockery": "0.*@stable", - "satooshi/php-coveralls": "*@stable" + "predis/predis": "~1.0", + "symfony/framework-bundle": "2.*", + "symfony/console": "2.*", + "phpunit/phpunit": "4.*", + "mockery/mockery": "*", + "satooshi/php-coveralls": "*" }, "suggest": { "ext-memcached": "memcached Template Cache Driver", From ad66c4f5f09c0c53ed194f72e2c23b614f50ded0 Mon Sep 17 00:00:00 2001 From: yuuki takezawa Date: Thu, 5 Feb 2015 00:28:39 +0900 Subject: [PATCH 3/3] Update README.md --- README.md | 44 ++++++++++++-------------------------------- 1 file changed, 12 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 18da1d8..f0bfe27 100644 --- a/README.md +++ b/README.md @@ -30,33 +30,22 @@ view("template.name"); \View::assign('word', 'hello'); \View::clearAllAssign(); // smarty method ``` +##Install +###for Laravel5 +```json +"require": { + "ytake/laravel-smarty": "2.*" +}, +``` +### for Laravel4 +[Laravel4.2 / Laravel4.1](https://github.com/ytake/Laravel.Smarty/tree/master-4.2) ###example [registerFilter in ServiceProvider](https://gist.github.com/ytake/e8c834e88473ea3f10e7) [registerFilter in Controller](https://gist.github.com/ytake/1a6f1d5312b552bc83ff) [layout.sample](https://gist.github.com/ytake/11345539) [layout.extends.sample](https://gist.github.com/ytake/11345614) -##Install - -###for Laravel5(for develop) -```json -"require": { - "ytake/laravel-smarty": "2.*@dev" -}, -``` -###for Laravel4.2.* -```json -"require": { - "ytake/laravel-smarty": "1.2.*" -}, -``` -###for Laravel4.1.* -```json -"require": { - "ytake/laravel-smarty": "1.1.*" -}, -``` ##Artisan キャッシュクリア、コンパイルファイルの削除がコマンドラインから行えます。 @@ -126,26 +115,17 @@ Usage install後、 app/config配下のapp.phpのproviders配列に以下のnamespaceを追加してください。 -add providers +## add providers ```php 'providers' => [ 'Ytake\LaravelSmarty\SmartyServiceProvider' ] ``` -configファイルをpublishします。 -publish configure(for laravel4) -```bash -$ php artisan config:publish ytake/laravel-smarty -``` -app/config/packages配下に追加されます。 -publish to app/config/packages - -publish configure(for laravel5) +## publish configure(for laravel5) ```bash -$ php artisan ytake:smarty-config-publish +$ php artisan vendo:publish ``` -config配下に追加されます。 publish to config directory