Create a Twill app in one line
March 15, 2019 at 8:48pmCreate a Twill app in one line
March 15, 2019 at 8:48pm (Edited 3 years ago)I made a composer package create-twill-app to help people create a fresh twill app in one line.
I found this small tool was super useful during the past few months, whenever I needed to create a new twill app either for testing purpose or as a real world product.
The only problem at that time was it cost too much time on compiling assets, however, thanks to the Twill 1.2.1 release which get Laravel Mix 4 updated, the installation time now has been decreased significantly by almost 200%.
Thus now maybe a good time to share it with all other developers who love Twill.
Requirements
- PHP >= 7.1.3
- An empty MySQL database
- Composer
Usage
First, download the create-twill-app package using Composer:
composer global require yanhaoli/create-twill-app
Then, use the installer to create a fresh twill application:
create-twill-app new blog
It will ask you to enter the database infomation during the installation:
Enter your database host ["127.0.0.1"]: 127.0.0.1Enter your database username ["homestead"]: homesteadEnter your database password ["secret"]: secretEnter your database name ["homestead"]: homestead
Once you see the message Laravel development server started:, that means the installation has been completed.
Now, access Twill's beautiful login console by typing http://localhost:8000/admin in your browser, enjoy!

December 29, 2020 at 9:53pm
(yanhaoli) i have error for use this command for now
In PackageManifest.php line 131:
Undefined index: name