PHP has the following features:
- PHP code may be embedded into HTML code
- It can also be used in combination with various web template systems, web content management system and web frameworks.
- PHP code is usually processed by a PHP interpreter
- PHP interpreter is implemented as a module in the web server or as a Common Gateway Interface (CGI) executable.
- The web server combines the results of the interpreted and executed PHP code, which may be any type of data, including images, with the generated web page.
- PHP code may also be executed with a command-line interface (CLI)
- Which can be used to implement standalone graphical applications.
Pros and Cons
Pros
- Ubiquity and ease to use
- With PHP, you have the freedom of choosing an operating system and a web server.
- An excellent tool for disciplined developers
- It stays close to its C roots while removing some of the unnecessary pain points like memory management, pointers and the compile cycle.
- The OOP implementation is simple, elegant and easier to read than its peers.
- The Java mantra of "complexity at any cost" is nowhere to be found; concise method names are used throughout.
- Good documentation
- Available at PHP.net for free
- Healthy PHP community.
- PHP Planet is a great resource for and from PHP community members
Cons
- One of PHP's biggest strengths is also one of its limitations
- Hard to maintain codes written by other people
- PHP is very flexible in general; there are no less than 30 ways to accomplish the same task.
- Especially when code standards are not consistent and best practices aren't followed
- Lots of bad PHP in the world
- The low entry barrier means that there is a lot of bad PHP in the world
- The readily available resources online can be great and terrible at the same time
- For example, junior developers can quickly pick up insecure PHP codes from the Internet and adapt them in their projects
- Too much choice (time can be wasted searching for quality codes)
- Developers have too much choice when it comes to selecting a library or framework to work with, and the information available is often biased and unreliable so a lot of time can be wasted searching for quality.
PHP Composer
If you have ever written anything in PHP before, you have probably found that it feels like you have to keep re-inventing the wheel anytime you want to do a common task such as User Authentication, Database Management or Request Routing. PHP now has a dozen of mature frameworks[10,11]
that have already solved all of these problems. PHP Composer is a tool to make it easier to cherry pick the bits that you needed from each framework.
To summarize, PHP Composer is
- A dependency manager for PHP
- Help you to install packages on a project-by-project basis
References
- What can PHP do?
- 8 Experts Break Down the Pros and Cons of Coding With PHP
- HipHop
- PhpUnit
- Joind.in
- Is a good example of a PHP app
- StatusNet
- Is an open-source microblogging platform
- PHPDoc
- Best PHP application dealing with scalability
- What is PHP Composer?
- The Best PHP Framework for 2015: SitePoint Survey Results
- 10 PHP Frameworks For Developers – Best Of
- PHP Extension and Application Repository (PEAR)
- Is a repository of PHP software code to promote the re-use of code that performs common functions (founded by Stig S. Bakken in 1999)
- PHPClasses.org
- Is a service created in 1999 as a means of distributing freely available programming classes of objects written in PHP
- Software Collections (rh-php56)
ReplyDeleteبليط هواپیما تهران یزد