Laravel 5 – Package Creation



In this video, I show you how to create a Laravel package from scratch and also how to publish it on packagist.org. For this tutorial, we will build a package for calculating the body mass index (BMI).

GitHub: https://github.com/luismec90/bmi

These are all the commands I used:

composer init
composer dumpautoload
git init
git add .
git commit -m “First commit”
git remote add origin https://github.com/your_user_name/bmi.git
git push -u origin master
git tag -a 1.0.0 -m “First version”
git push –tags

source

Reply


Build A Site Info