Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
What Are Laravel Packages?
Dec 11, 2015 @ 17:13:14

On the NetTuts.com site they've published a tutorial that explains Laravel packages - what they are and how you can create your own to seamlessly integrate with this popular framework.

As a PHP developer, you may be interested in working with frameworks. Frameworks attempt to make the process of development easier by simplifying common practices used in the majority of developing web projects such as packages, modules, plug-ins, and even components (CakePHP).

[...] There are two types of packages; some are framework independent (stand-alone) and the others are for a specific framework. This tutorial will exclusively cover Laravel packages.

They start with a look at what these packages are and how they integrate with the framework and your application. They also link to a few of the packages they've found useful in their development including an IDE helper and OAuth wrapper. With this knowledge in place the tutorial then gets into to creating your own packages, installable via Composer and using a Service Provider to set up configuration needs. The post ends with a look at integrating and enabling your package through the application configuration.

tagged: laravel framework package introduction example composer

Link: http://code.tutsplus.com/tutorials/what-are-laravel-packages--cms-25013


Trending Topics: