The Laravel News site has continued their series of posts covering the creation of a Laravel translation package with part two of the series. In this latest article they build on part one's introduction and start to build out some of the scaffolding for the package.
In Part 1, we introduced that this series would cover the process of building and maintaining an open-source package for Laravel. Check it out for an overview of what we’ll create in this series. Next, we are going to get to work on scaffolding a new Laravel package.
The post then walks you though the basics of scaffolding a package including:
- repository setup
- Composer configuration creation
- defining the package structure
- the creation of a service provider
Examples of the Composer configuration are included but the remainder of the points will be developed over the next several parts of the series.