10个应该知道的最好PHP开发库

jopen 11年前

Here are listed some most useful libraries that developers should know about them in their starting phase of development. These libraries cam make their coding section more easy. Visit this list and share your thought in our comment section bl

1) Assetic

Assetic is an asset management framework for PHP. 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.

10个应该知道的最好PHP开发库

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.

Features

1) Includes providers for Silex and Zend Framework 2, with community-provided support for other platforms and frameworks
2) Now included in the Laravel 4 core!
3) Detailed & intuitive page for errors and exceptions (PrettyPageHandler)
4) Code view for all frames in a stack trace with line highlights (PrettyPageHandler)
5) Frame comments & analysis through custom middle-ware/handlers (PrettyPageHandler)
6) Request & app-specific information through custom middle-ware/handlers (PrettyPageHandler)
7) JSON & AJAX support (JsonResponseHandler)
10个应该知道的最好PHP开发库 Clean and tested code-base that’s easy to extend and build on to make it work just right for your project

10个应该知道的最好PHP开发库

3) Snappy

Snappy is a PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent webkit-based wkhtmltopdf and wkhtmltoimage available on OSX, linux, windows.

10个应该知道的最好PHP开发库

4) Idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.

1) Makes simple queries and simple CRUD operations completely painless.
2) Gets out of the way when more complex SQL is required.
3) Built on top of PDO.
4) Uses prepared statements throughout to protect against SQL injection attacks.
5) Requires no model classes, no XML configuration and no code generation: works out of the box, given only a connection string.
6) Consists of one main class called ORM. Additional classes are prefixed with Idiorm. Minimal global namespace pollution.
7) Database agnostic. Currently supports SQLite, MySQL, Firebird and PostgreSQL. May support others, please give it a try!
10个应该知道的最好PHP开发库 Supports collections of models with method chaining to filter or apply actions to multiple results at once.
9) Multiple connections supported
10) PSR-1 compliant methods (any method can be called in camelCase instead of underscores eg. find_many() becomes findMany()) – you’ll need PHP 5.3+

10个应该知道的最好PHP开发库

5) Dispatch

Dispatch is yet another PHP micro-framework. It’s very small and very straightforward to use. No classes, no namespaces. Just one file. Include it. Use it.

10个应该知道的最好PHP开发库

6) Opauth

Opauth provides a standardized method for PHP applications to interface with authentication providers. Opauth as a framework provides a set of API that allows developers to create strategies that work in a predictable manner across PHP frameworks and applications.

10个应该知道的最好PHP开发库

7) PHP Thumb

phpThumb() uses the GD library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. The output size is configurable (can be larger or smaller than the source), and the source may be the entire image or only a portion of the original image.

10个应该知道的最好PHP开发库

8 ) Omnipay

Omnipay is a payment processing library for PHP. It has been designed based on ideas from Active Merchant, plus experience implementing dozens of gateways for CI Merchant. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started.

10个应该知道的最好PHP开发库

9) 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,

10个应该知道的最好PHP开发库

10) Gaufrette

Gaufrette is a PHP5 library that provides a filesystem abstraction layer.

10个应该知道的最好PHP开发库

- See more at: http://webinsightlab.com/technology/10-best-php-libraries-developers-should-know-about/#sthash.jj2pktaa.dpuf