With Envoyer you can easily deploy your PHP projects without any downtime. You can connect your Github, BitBucket or any other git source and let Envoyer deploy your application to one or more servers. Although Envoyer is made by Taylor Otwell, the developer who created Laravel, it’s not restricted to Laravel. You can deploy any PHP project and is pretty affordable too.
Unfortunately not all your packages can be open source. Some companies don’t join the “open source train” while other packages must remain private for other reasons. These packages can be used in several projects and it would be lovely to use it just like any other package. Off course you use the private version of packagist but that’s a bit expensive (starting at 49 euro per month) and just isn’t necessary.
Laravel can be installed with the Laravel installer or composer. Both installers will place the application into a folder which is named after the application. Sometimes we want to affect that behaviour.
When developing in Windows I’m using Wampserver. When switching to OS X I started searching for an alternative and found some possible solutions. After testing some, I found AMPPS to be the best alternative because of the ease of adding domains. For optimal usage and developing with Laravel, it requires some extra configuration.
One of the first thing to install for PHP development is Composer. The installation is pretty much straight forward, but it’s not available globally after installation.
- Download composer:
url -sS https://getcomposer.org/installer | php
- Move the the bin folder:
mv composer.phar /usr/local/bin/composer.phar
.bash_profilewith the editor of your choice (nano, vim, etc.)
alias composer="php /usr/local/bin/composer.phar"
- Close terminal and open again
After this, Composer is available globally.
There are many packages available for asset management in Laravel. Although some are pretty good, I think asset management packages aren’t really necessary in Laravel thanks to the Blade template engine. So with those words, let’s put my money where my mouth is and show you the way I’m managing my assets in Laravel.