From 9f3e17d9832049f57b8c16f571955bf55bee965a Mon Sep 17 00:00:00 2001 From: darkalchemy Date: Sat, 15 Feb 2020 15:18:01 -0500 Subject: [PATCH] update: README.md --- README.md | 7 +++---- composer.json | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdff4c1..a6fe50c 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,11 @@ npm is required [Slim Whoops](https://github.com/zeuxisoo/php-slim-whoops) for displaying errors -To install: +To install with composer: ``` -git clone git@github.com:darkalchemy/Slim-Auth.git -cp config/settings.example.php config/settings.php +composer create-project darkalchemy/slim-auth ``` -edit settings as needed. +edit config/settings.php as needed. Set ownership ``` diff --git a/composer.json b/composer.json index f7a4743..656a0af 100644 --- a/composer.json +++ b/composer.json @@ -71,6 +71,9 @@ "post-update-cmd": [ "composer dump-autoload -o" ], + "post-create-project-cmd": [ + "php -r \"copy('config/settings.example.php', 'config/settins.php');\"" + ], "migrate": [ "vendor/bin/phinx migrate -c config/phinx.php -e default --ansi" ],