O'Reilly logo

Learning FuelPHP for Effective PHP Development by Ross Tweedie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

An introduction to building your own package

As you have seen so far, packages are very useful, besides they can also be simple to create. We will run through some of the basics in this section while creating a text manipulation package.

Setting up a repository

The first thing to do is set up a repository. Like in the previous chapter, we will use GitHub.

We will be creating a package called Journal String; this will have a repository name of journal-string. Ordinarily, it is recommend to use something like Fuel String, but since this is a simple example, it's not necessary to include Fuel within the title of the package.

We will be using the new repository as a submodule within the journal project, so make sure you make a note of the repository address, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required