官术网_书友最值得收藏!

Development process of a FuelPHP application

The development process of a FuelPHP application generally contains the steps shown in the following image:

Development process of a FuelPHP application
  • Install FuelPHP: Since we are using this framework, this first step is quite obvious.
  • Config (configuration): At the beginning, you will generally need to specify how to connect to the database and which package you will use. Later on, you might also need to create and use your own configuration files to improve the maintainability of your application.
  • Scaffold: The oil command line of FuelPHP allows you to easily generate code files ready to be used. This step is not necessary, but we will often use this functionality in this book because it really speeds up the implementation of your application.
  • Dev (development): This is where you, as a developer, step in. You customize the generated code to get exactly what you want. When you want to add new features (for instance a new model), you go back to the scaffolding step.
  • Tests: Functional and unit testing are important if you want large applications to stay maintainable. When bugs are discovered, you go back to the development step in order to fix them. Unlike the other steps, we won't approach this subject in this chapter for the sake of its conciseness. It will be addressed in Chapter 5, Building Your Own RESTful API.
  • Prod (production): Having a project working locally is nice, but the final objective is generally to publish it online. We will give you some directions about this step at the end of this chapter, but we won't get too much into the details, given the diversity of available hosting services.

Just to be clear, this is a very general guideline, and of course the order of the steps is not rigid. For instance, developers using the test-driven development process could merge the fourth and fifth steps, or a preproduction step could be added. The development process should only depend on each developer and institution's standards.

主站蜘蛛池模板: 罗城| 合江县| 通城县| 大方县| 温州市| 汉中市| 武陟县| 芷江| 连平县| 宜兰市| 杭锦旗| 托里县| 盘山县| 抚远县| 邹平县| 泗洪县| 柘城县| 通渭县| 综艺| 滨州市| 北安市| 邯郸县| 顺义区| 洛浦县| 乌兰县| 田阳县| 长寿区| 青川县| 平阳县| 东乡| 萨嘎县| 永福县| 淅川县| 天全县| 柯坪县| 九江市| 黄石市| 喀喇沁旗| 遂昌县| 宜章县| 宣威市|