PHP

From Things and Stuff Wiki
Revision as of 01:36, 21 July 2012 by Milk (talk | contribs) (→‎PSR)
Jump to navigation Jump to search


Docs and guides

  • PHP Sadness - "These are things in PHP which make me sad. They are real, objective issues which I have personally encountered in my normal day-to-day activites. Nothing on this site should be taken to be the view of my employer or is related to my employer in any way."

Code

Articles

Command-line

  • phpsh is an interactive shell for php that features readline history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. It is open source and released under a modified BSD license.

APC

  • Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

Bugs, etc.

  • PHPLint is a validator and documentator for PHP 4 and PHP 5 programs. PHPLint extends the PHP language through transparent meta-code that can drive the parser to a even more strict check of the source. PHPLint is not simply a checker: it implements a new, strong typed, language implemented over the PHP language.

Web tools

  • codepad is an online compiler/interpreter, and a simple collaboration tool.

Paste your code below, and codepad will run it and give you a short URL you can use to share it in chat or email.

  • http://codepad.viper-7.com/
  • Ideone is something more than a pastebin; it's an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.

PHP extensions

Packages

Pear

install;

wget http://pear.php.net/go-pear.phar
php go-pear.phar
pear --version

PSR

    • PSR-1 - Basic Coding Standard
    • PSR-2 - Coding Style Guide
  • Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs to install to run. Composer is not a package manager. It deals with "packages" or libraries, but it manages them on a per-project basis, installing them in a directory (e.g. vendor) inside your project. By default it will never install anything globally. Thus, it is a dependency manager. Strongly inspired by node's npm and ruby's bundler.
    • Packagist is a Composer package repository. It lets you find packages and lets Composer know where to get the code from. You can use Composer to manage your project or libraries' dependencies - read more about it on the Composer website.
    • Packages: The Way Forward for PHP
  • PHPCR - The PHP Content Repository is an adaption of the Java Content Repository (JCR) standard, an open API specification defined in JSR-283. The API defines how to handle hierarchical semi-structured data in a consistent way.
  • The Doctrine Project is the home of a selected set of PHP libraries primarily focused on providing persistence services and related functionality. Its prize projects are a Object Relational Mapper and the Database Abstraction Layer it is built on top of. You can read more about the projects below or view a list of all projects.

Frameworks

Zend Framework

  • Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase. Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications & web services, and consuming widely available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as well as API providers and cataloguers like StrikeIron and ProgrammableWeb.

Aura

  • Aura provides independent library packages for PHP 5.4+. These packages can be used alone, in concert with each other, or combined into a full-stack framework of their own.

Autoload: A PSR-0 compliant autoloader, ready for SplClassloader. Cli: Tools to build command-line controllers, including a CLI context, options management, and input/ouput handlers. Di: Dependency injection container. Framework: The only package that has dependencies, this package wraps the others to provide a component-based framework library. Tools to build HTTP response messages. Marshals data from any data source into domain objects, including relationships between those object. A web router. A signal slots / event handler implementation. SQL database connection and query tools. Template views, two-step views, and view helpers. Web.

Other

  • Slim is a PHP 5 Micro Framework. What began as a weekend project is now a simple yet powerful PHP 5 framework to create RESTful web applications. The Slim micro framework is everything you need and nothing you don't.
  • Yii is a high-performance PHP framework best for developing Web 2.0 applications. Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.

date formats

j/n/y - 24/10/12
g:ia, j M - 11:41pm, 13 Feb

PHP & JS