Is there any Django-esque PHP framework that I can use?

I really enjoy working with Django and Python, when I return to PHP, I feel lugered / limited ... I tried Zend / Kohana / CodeIgniter / CakePHP, but none of them are very nice ...

Does anyone know of some kind of php framework that is heavily dependent on Django? Or at least a template system?

+4
source share
6 answers

I just decided to host my client application on my server and not do it in PHP.

0
source

There is also the Akelos Framework , which is described as Rails in PHP. Django is not Rails, but they are very similar: MVC (MVT in Django), good ORM, migration (in the case of Django you need to use an external tool), etc. Therefore, Akelos might suit you.

Edit: I just found Pluf .

The site says:

Simple, elegant and simple for people accustomed to Django, but in PHP5 so easy to deploy around the world.

I have never tried, so I can not recommend it or not.

Edit2: If you are looking for a template system, you can try Open Power Template . Some of the features are:

Enhanced support for declarative programming - say what you want to see, not how it should work.

Blocks are easy-to-write instructions that are evaluated at runtime.

Components - Creating HTML forms with templates has never been easier.

Intelligent HTML escaping methods and XSS syntax.

+2
source

For the template part of your question, the Django template system is actually very similar to (and perhaps inspired by) the Smarty engine template.

Smarty turned into a monster of tens of thousands of lines of code, and so Template Lite was created in response, although I think that Smarty is currently trying to improve its performance.

I know that Kohana can use almost any template engine (although some of the helpers may not be available); I am not familiar enough with any of the other PHP frameworks to say definitively about them.

+2
source

Take a look at QCodo . It is fully OO, with a good template system, solid ORM, i18n support, and a code generator that analyzes your database and generates all your CRUD functions. This allows you to quickly develop web applications at a completely different level than other PHP frameworks. Don’t worry if you are procedural code-based or weak in your object-oriented programming skills.

+2
source

If you have an option for php 5.3 ..

http://li3.me/

(formerly CakePHP 3)

I believe Symfony has a component similar to Django, but I can’t say for sure, since I have never used Django before :)

http://www.symfony-project.org/

+2
source

maybe CakePHP ?

+1
source

Source: https://habr.com/ru/post/1301522/


All Articles