How to make your own PHP framework?

Building your own framework can be useful for the following reasons:

  • You can learn a lot - advanced design patterns, concepts and software architecture.
  • You know exactly what certain parts of your code do without learning from the documentation of others.

However, on the PHP market there are many very high quality open source frameworks that many projects and organizations use to build software faster and better. Picking an established open source framework has its benefits:

  • When working in a team, people that already know the open source framework used by a project can join the project faster.
  • Better quality and a lot of bugs that have been identified and fixed, that your custom framework hasn’t been tested for in a many projects yet.

What knowledge you will need to create a decent framework?

For creating a framework you will have to know OOP, design patterns, ORM, authentication, MVC (model view controller) and other advanced concepts.

See also

Here are listed some useful resources and tutorials that can also help you create your own modern and quality PHP framework.