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.
Related
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
I need tips and recommendations from experts regarding the development of a new website. I am a beginner to the web development field. I have grasped the basics of HTML/CSS/Javascript/PHP/MySQL however I want to start developing an advanced feature website and I am unsure of how to start. I'm guessing that professionals do not start coding from scratch and that there are certain libraries that could make life easier.
The elements of this website are :
-users can signup/login and edit profiles
-users can search website content
-users can exchange messages
What are the best languages, tools, programs, frameworks, libraries that should help me complete this project in a reasonable amount of time. I know this is a very broad topic but please recommend anything helpful so that I can start heading in the right direction.
Laravel is the new star of the web application development community. Fairly easy to use, great documentation, many many packages/modules/extensions. I personally had problems choosing between Laravel and Yii, but this chart helped me a lot:
http://vschart.com/compare/laravel/vs/yii
You might also want to check out:
http://www.phpframeworks.com/
Beside PHP Frameworks, there are tons of great resources out there (check out GitHub). Gotta love the 2010's.
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).
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.