From 96a324b6601a226082e545570951d2d6cea189da Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 24 Oct 2017 20:33:58 +0100 Subject: [PATCH 1/4] Beautify Composer JSON --- composer.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 50023f1..a561ea4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,5 @@ - { - "require": { - "psy/psysh": "0.7.*|0.8.*" - } + "require": { + "psy/psysh": "0.7.*|0.8.*" + } } From e29afc2e61a0d24490736d26ccfa08acf7eff930 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 24 Oct 2017 20:36:21 +0100 Subject: [PATCH 2/4] Updated Composer JSON --- composer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a561ea4..6f2ca08 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,10 @@ { + "name": "theadnan/yiinker", + "description": "A REPL for the Yii framework inspired by Laravel's Artisan Tinker.", + "type": "library", + "minimum-stability": "stable", + "license": "MIT", "require": { - "psy/psysh": "0.7.*|0.8.*" + "psy/psysh": "0.7.* || 0.8.*" } } From dcf3b600d9e2bf39c1d0877debcbe509ab218762 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 24 Oct 2017 20:43:16 +0100 Subject: [PATCH 3/4] Updated README --- README.md | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e137619..ca987c1 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,31 @@ ## Yiinker -*A REPL for Yii framework inspired by laravel's artisan Tinker* + +*A REPL for the Yii framework inspired by [Laravel]'s Artisan Tinker.* ### Installation and usage In the `protected` folder, add this to your composer.json file (if there isn't one, create an empty composer.json): -`"require": { ` - ` "psy/psysh": "0.7.*|0.8.*"` -`} -` +```json +{ + "require": { + "psy/psysh": "0.7.* || 0.8.*" + } +} +``` -Or simply run this command `composer require psy/psysh:@stable`. -Next, add the YiinkerCommand.php file to `protected/commands` folder. +Or simply run this command `composer require psy/psysh:@stable`. +Next, add the `src/YiinkerCommand.php` file to `protected/commands` folder. Alternatively, you can run the `install.sh` script in your `protected` folder to do this job for you. You can now run it in your terminal with: `php yiic yiinker` + +### License + +This package is licensed under the [MIT license]. + +[Laravel]: https://laravel.com +[MIT license]: LICENSE From 4192d5ef3372f521580d21b920880b5717f062f6 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 24 Oct 2017 20:46:05 +0100 Subject: [PATCH 4/4] Updated the installer to just copy the YiinkerCommand file instead of echoing --- install.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index fcf7b7a..53b7a8b 100644 --- a/install.sh +++ b/install.sh @@ -1,20 +1,13 @@ #!/bin/bash echo "Installing Yiinker" + mkdir -p commands touch commands/YiinkerCommand.php -echo "> commands/YiinkerCommand.php +cp src/YiinkerCommand commands/YiinkerCommand.php composer require psy/psysh:@stable composer dump-autoload + echo "Yiinker successfully installed!"