Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anybody know of something similar to django in PHP ?
I am looking for something that is a simple to use as django.
I have been using django for quite a long and now I have to do some development in PHP and I was expecting to use something similar
thanks
There are lots of MVC frameworks for PHP - it's hard to say which of these are "similar to Django" because of the variance in featuresets (and most folks don't even really use all of what is available in Django). But if you're just looking for a framework that uses the MVC paradigm, you now have a handy list to look through as well as some Google-able phrases
Yii is very similiar to Django, try it
Symfony2 is the most Django-like PHP framework up to date. It's been released just few months ago, so don't expect full documentation or LTS version, but it has several features that are very similar to Django: Twig (template engine), Bundles (almost like applications in Django), ORM and Assetic (library for handling static resources).
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I was looking at the hack language of Facebook but I have a server running several php sites.
Now I was wondering if there is a tool that can convert hack back to php, so it can be run it on my server but I can develop in hack?
Hack is neither a subset nor a superset of PHP -- we've been calling it a "dialect". While writing a tool to convert many (but not all!) features from Hack to PHP might be possible right now, we don't believe it to be a good idea. This thread has some discussion and elaboration on why: https://github.com/facebook/hhvm/issues/2236 (Super short summary: you really want the runtime to be enforcing your type annotations.)
As that thread says, we do want a better PHP conversion story than we have right now, particularly for frameworks that don't want to convert over to Hack wholesale (since they'd lose most of their users/customers :)). We don't have anything yet, but have some ideas we haven't gotten around to working on yet.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am a great fan of Zend framework and somehow i have modified it in my own way.
I have been using it from around a year but still i lack knowledge of some internal workings.
So i decided to design my own framework to understand inner things.
I just want from you guys to provide resources about it, articles, tutorial or any book.
I want it to be like Zend framework and initially just MVC structure only.
one way that I have found to be very helpful in understanding the inner workings of something like Zend Framework is to use a debugger and step through the code. You can follow it is as it does each thing and really get a good feel for where it goes, what it uses and how it works.
I use the Netbeans IDE and if you have xdebug installed and configured properly you can set some breakpoints, hit debug and follow any aspect of the code as deeply or shallowly as you like. Very, very useful.
Here is a link to doing this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there a PHP equivalent of Rails migrations?
Looking for a good solution for configuring schema changes locally and then automatically bumping them to the server without losing data.
My project http://github.com/robmorgan/phinx is a small lightweight migration engine without any bloat or big framework dependency. It borrows the best parts from several tools including ActiveRecord::Migration.
Ruckusing Migrations is a "Database Migrations" framework for PHP 5.2+.
The framework is modeled after ActiveRecord::Migrations from Ruby on Rails.
Doctrine, an ORM and DBAL, has got migrations.
http://github.com/nickinuse/php-migrations is built on RoRs approach
Just to throw my hat into the ring, Ladder is a simple, pure PHP migrations system.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
i wonder if there are tutorials/books explaining how you create a library/plugin/module for other to implement?
libraries/frameworks like solr, doctrine, codeigniter etc.
cause it seems that they follow the same pattern. having one "bootstrap" file to load configurations, other classes and so on.
i aim to understand the basics, so i can create a such library.
cause at the moment i want to code an address book that other can use. just include a bootstrap file and they are ready to use my classes (like Doctrine).
recommendations of sources to learn these things of stuff?
you experienced guys, how did you learn it?
thanks.
It depends - if you're not creating anything visual (resp. anything missing presenters/controllers), it shouldn't be problematic. Just put it into libs/components etc. directories.
If you're creating for example universal administration where presenters/controllers are present, which is placed in proper module folder (every framework has this feature): I wouldn't worry about shipping it so. But you may consider packing it such as whole project.
If you're looking for basic MVC tutorials, check out http://www.phpro.org/tutorials/Model-View-Controller-MVC.html.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Where can I find PHP coding convention references for PHP coding standards?
I suggest Zends Coding Standard: http://framework.zend.com/manual/1.12/en/coding-standard.html
The PEAR coding standards have been around for a while now. I believe they are the default for the PHP code sniffer.
PSR-2: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
(Excerpt)
This guide extends and expands on PSR-1, the basic coding standard.
The intent of this guide is to reduce cognitive friction when scanning code from different authors. It does so by enumerating a shared set of rules and expectations about how to format PHP code.
The ones from Zend are very good.
I think there is no official coding standard. I think the ones from Zend are used very often, because they are the company who develop php. But symfony for example, which is a large php mvc framework, has it's own conding standards.
I would also like to mention that another popular framework, CakePHP, has their own conventions.
http://book.cakephp.org/view/22/CakePHP-Conventions
I would recommend looking at the FLOW3 Coding Guidelines. It is very good.