35个实用的PHP开发库

cm54 9年前

1) Hoa

Hoa is one fo the most popular library for modular, extensible and structured.  Moreover, Hoa aims at being a bridge between industrial and research worlds.

best PHP libraries for developers - hoa

2) Whoops

whoops is a nice little library that helps you develop and maintain your projects better, by helping you deal with errors and exceptions in a less painful way.

whoops - best PHP libraries for developers

3) Underscore

Underscore.php is a PHP port of the popular Underscore.js library. In addition to porting Underscore’s functionality, Underscore.php includes matching unit tests. Underscore.php requires PHP 5.3 or greater.

underscore - best PHP libraries for developers

4) Alice

Alice allows you to create a ton of fixtures/fake data for use while developing or testing your project. It gives you a few essential tools to make it very easy to generate complex data with constraints in a readable and easy to edit way, so that everyone on your team can tweak the fixtures if needed.

alice -best PHP libraries for developers

5) Klein

klein.php is a lightning fast router for PHP 5.3+. A set of boilerplate methods for rapidly building web apps.

klein - best PHP libraries for developers

6) Idiorm and Paris

Highly useful databse toolkit for PHP5. If you prefer to think about tables and joins, you should probably be using Idiorm. If you prefer to think about model objects andrelationships, you should probably be using Paris.

idiormandparis - best PHP libraries for developers

7) Imagine

Imagine is a OOP library for image manipulation built in PHP 5.3 using the latest best practices and thoughtful design that should allow for decoupled and unit-testable code.

imagine - best PHP libraries for developers

8) Buzz

Buzz is a lightweight PHP 5.3 library for issuing HTTP requests.

buzz - best PHP libraries for developers

9) uBench

Ubench is a PHP micro library for benchmark.

ubench - best PHP libraries for developers

10) PHP PasswordLib

PHP-PasswordLib aims to be an all-inclusive cryptographic library for all cryptographic needs. It is meant to be easy to install and use, yet extensible and powerful enough for even the most experienced developer.

passlib - best PHP libraries for developers

11) Ratchet

Ratchet is a loosely coupled PHP library providing developers with tools to create real time, bi-directional applications between clients and servers over WebSockets. This is not your Grandfather’s Internet.

ratchet - best PHP libraries for developers

12) Gaufrette

Gaufrette is a PHP5 library that provides a filesystem abstraction layer. The filesystem abstraction layer permits you to develop your application without the need to know were all those medias will be stored and how.

Gaufrette - best PHP libraries for developers

13) Parody

Parody is an extremely simple library that can be used to mimic classes and objects as well as provide working results for method calls (both object and static), getting properties, instantiating objects, etc. It uses sequential method chaining to make defining class structures and operation extremely quick.

parody - best PHP libraries for developers

14) Upload

This component simplifies file validation and uploading.

upload - best PHP libraries for developers

15) Snappy

Snappy is a PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page.

snappy - best PHP libraries for developers

16) ColorJizz PHP

ColorJizz-PHP uses the PSR-0 standards for namespaces, so there should be no trouble using with frameworks like Symfony 2.

colorjizz - best PHP libraries for developers

17) Faker

Faker is a PHP library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.

faker -best PHP libraries for developers

18) PHPgeo

phpgeo provides abstractions to geographical coordinates (including support for different ellipsoids) and allows you to calculate geographical distances between coordinates with high precision.

phpgeo - best PHP libraries for developers

19) Assetic

An Assetic asset is something with filterable content that can be loaded and dumped. An asset also includes metadata, some of which can be manipulated and some of which is immutable.

assetic - best PHP libraries for developers

20) Requests PHP 

Requests is a HTTP library written in PHP, for human beings. It is roughly based on the API from the excellent Requests Python library.

request - best PHP libraries for developers

21) Ham

PHP Microframework for use with whatever you like. Basically just a fast router with nice syntax, and a cache singleton. Will add more things as I go, like perhaps an extension system, autoloader and some other stuff to make developing in PHP less irritating than it currently is.

ham - best PHP libraries for developers

22) StashPHP

Stash makes it easy to speed up your code by caching the results of expensive functions or code. Certain actions, like database queries or calls to external APIs, take a lot of time to run but tend to have the same results over short periods of time.

stash - best PHP libraries for developers

23) Shellwrap

t’s a beautiful way to use powerful Linux/Unix tools in PHP. Easily and logically pipe commands together, capture errors as PHP Exceptions and use a simple yet powerful syntax. Works with any command line tool automagically.

shellwrap - best PHP libraries for developers

24) Unirest

Unirest is one of the best lightweight HTTP request client libraries for web developers.

unirest - best PHP libraries for developers

25) PHP vcr

phvcr - best PHP libraries for developers

26) Carbon

A simple PHP API extension for DateTime

carbon - best PHP libraries for developers

27) Goutte

Goutte is a screen scraping and web crawling library for PHP. Goutte provides a nice API to crawl websites and extract data from the HTML/XML responses

Goutte - best PHP libraries for developers

28) Munee

Munee is a PHP5.3 library to easily on-the-fly compile LESS, SCSS, or CoffeeScript, resize/manipulate images on-the-fly, minify CSS and JS, and cache assets locally and remotely for lightening fast requests.

munee - best PHP libraries for developers

29) Guzzlephp

Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.

guzzle - best PHP libraries for developers

30) PHP HTTP Client

Httpful is a simple, chainable, readable PHP library intended to make speaking HTTP sane. It lets the developer focus on interacting with APIs instead of sifting through curl set_opt pages and is an ideal PHP REST client.

httpclient - best PHP libraries for developers

31) PHP Fast Cache

phpFastCache is a high-performance, distributed object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

phpfast - best PHP libraries for developers

32) PHP Image Workshop

PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.

phpimage - best PHP libraries for developers

33) PHP Error

This library help to find the error messages, full syntax highlighting, code snippers and works for ajax too.

phperror - best PHP libraries for developers

34) PHP seclib

phpseclib is designed to be ultra-compatible. It works on PHP4+ (PHP4, assuming the use of PHP_Compat) and doesn’t require any extensions. For purposes of speed, mcrypt is used if it’s available as is gmp or bcmath (in that order), but they are not required.

phpseclib - best PHP libraries for developers

35) PHP Markdown

This is a library package that includes the PHP Markdown parser and its sibling PHP Markdown Extra with additional features. Originally it was a port to PHP of the Markdown tool written by John Gruber.

marksown - best PHP libraries for developers