Firebird Documentation IndexFirebird 3.0 Developer's Guide → Developing Web Applications with PHP and Firebird
Firebird Home Firebird Home Prev: Source CodeFirebird Documentation IndexUp: Firebird 3.0 Developer's GuideNext: Interfacing PHP and Firebird

Chapter 6: Developing Web Applications with PHP and Firebird

Table of Contents

Interfacing PHP and Firebird
PHP Drivers for Firebird
Comparing the Drivers
Choosing a Framework for Building a Web Application
Installing Laravel
Installing Composer
Installing Laravel
Creating a Project
Our Project's Structure
Configuration
Creating Models
A Tool for Model-making
Invoice Items Model
How Laravel Manages Data
Transactions
Creating Controllers and Configuring Routing
Using Controllers to Route Requests
A Customer Controller
A Product Controller
A Controller for Invoices
Changing the Routes
The Result
Source Code

In this chapter, we are going to create a web application using the PHP language with Firebird as the back-end. It is assumed that you have a web server, such as Apache HTTP Server or Nginx with PHP installed and active and a Firebird server available in the stack and running. A lightweight, stand-alone package such as QuickPHP would be enough for testing and debugging your project locally.

If your server supports PHP, you just create your .php files, put them in your web directory and the server will automatically parse them for you. PHP-enabled files are simply HTML files with a whole language of custom tags embedded in them. There is nothing to compile.

Prev: Source CodeFirebird Documentation IndexUp: Firebird 3.0 Developer's GuideNext: Interfacing PHP and Firebird
Firebird Documentation IndexFirebird 3.0 Developer's Guide → Developing Web Applications with PHP and Firebird