Skip to content

Instantly share code, notes, and snippets.

@arnisjuraga
Last active April 26, 2020 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnisjuraga/3429e0f5d0faf5a78e8569fbb489a9d7 to your computer and use it in GitHub Desktop.
Save arnisjuraga/3429e0f5d0faf5a78e8569fbb489a9d7 to your computer and use it in GitHub Desktop.
Codeigniter 4 install, boilerplate, configuration
apt update
apt install php-intl #needed by default
php-sqlite3 #needed by default configuration for tests - uses sqlite 

composer create-project codeigniter4/appstarter myfirstproject
cd myfirstproject
composer require myth/auth:1.*@dev
php spark auth:publish
# DO NOT PUBLISH migrations ! 

php spark migrate -all
# Replace path to `Auth/...` in App/Config/Auth`
# Add
\Myth\Auth\Authentication\Passwords\ValidationRules::class
# in 
Config/Validation.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment