Skip to content

Preface

In this tutorial, we will build a simple RESTful API application using Symfony and the latest PHP 8.

Audience

I assume you have some basic knowledge of PHP language, esp. the OOP feature since PHP 5.2.

If you are experienced in other OOP program languages, such as Java and C#, it is not difficult to migrate to the latest PHP programming. In fact, a lot of PHP frameworks, such as Zend Framework(now Laminas), Symfony and Doctrine are heavily inspired by Java frameworks, such as Spring and JPA/Hibernate.

In this tutorial, we will utilize the latest PHP 8 features to cook the sample application.

Sample Codes

The source codes of the sample application are available on Github. Get a copy and explore them yourself.

In short, you can clone the project from Github via git clone command.

$ git clone https://github.com/hantsy/symfony-rest-sample

Contribution

Any contributions are welcome. You can file an issue or send a PR on Github directly.

If my work is helpful, please help me to spread it out to your circles or buy me a coffee.:)

About Me

My name is Hantsy, an independent freelancer from China. I have over 20-year experience in software engineering and worked remotely for about 10 years.

If you need some development and technical consulting service, please drop me an email, my email is hantsy@gmail.com.

Enjoy reading!