PHP Web site development required 24 class library

Source: Internet
Author: User
Tags apc php framework
As a developer of PHP Web site, it is a good learning process to use other people's class library when they learn to implement the function library. These PHP class libraries are easy to discover and use on GitHub. Here are the coolest 24 libraries to collect!

1. dispatch– Micro-Frame

Dispatch is a small PHP framework. It doesn't give you full MVC settings, but you can define URL rules and methods to better organize your application. This is perfect for APIs, simple sites, or prototypes.

Project Address: Https://github.com/noodlehaus/dispatch

2. klein–php the road as fast as lightning

By Klein is another lightweight routing library for the php5.3+ version. Although it has some verbose syntax than dispatch, it's pretty fast. This is great for small projects, but when you use a library like this for a large application, you have to follow the rules, because your code can quickly become non-maintainable. So you'd better go with a fully fledged framework like laravel or CodeIgniter.

Project Address: https://github.com/chriso/klein.php

3. ham– The routing library with cache

Ham is also a lightweight routing framework, but it takes advantage of caching to get even faster. It caches any I/O-related stuff into the XCACHE/APC. This library requires you to install at least one of the XCache and APC, which may mean that it may not be available on most hosts provided by the host provider. But if you have a host that installs them, or you can manipulate your Web server, you should try this fastest framework.

Project Address: Https://github.com/radiosilence/Ham

4. assetic– Resource Management

Assetic is a PHP resource management framework for merging and reducing CSS/JS resources. Merging resources in this way is a good idea because it can speed up the site. Not only does the total download decrease, but it also eliminates a lot of unnecessary HTTP requests (two things that most affect page load times)

Project Address: https://github.com/kriswallsmith/assetic

5. Picture processing of imageworkshop– layer

Imageworkshop is an open source library that lets you manipulate images with layers. With it you can redefine dimensions, crop, make thumbnails, draw water or do more. Imageworkshop was developed to simplify some of the most common cases of processing pictures in PHP, and if you need something more powerful, you should look at Imagine library!

Project Address: http://phpimageworkshop.com/

6. snappy– Snapshot/pdf Library

Snappy is a PHP5 library that can generate snapshots, URLs, HTML, and PDFs. It relies on wkhtmltopdf binary (available on both linux,windows and OSX): Remember that your hosting provider may not allow calls to external binaries.

Project Address: Https://github.com/KnpLabs/snappy

7. idiorm– Lightweight ORM Library

Idiorm is one of the most popular tutorials you've ever used in this website. It is a lightweight ORM library, a PHP5 query builder built on PDO. With it, you can forget how to write a boring sql,idiorm there is a sister library called Paris,paris is a idiorm-based active record implementation.

Project Address: Https://github.com/j4mie/idiorm

8. underscore–php's Tool belt

Underscore is an interface of the original Underscore.js –javascript applied tool belt. The PHP version is not disappointing and supports almost all native features. This library also supports chained syntax, which makes it more powerful

Project Address: http://brianhaveri.github.io/Underscore.php/

9. requests– Simple HTTP request

Requests is a library that simplifies HTTP requests. If you're like me, you almost never remember the various parameters passed to curl, with this library, you can send head, GET, POST, PUT, delte, and patch HTTP requests, you can add files and parameters through an array, and you can access all the corresponding data.

Project Address: http://requests.ryanmccue.info/

buzz– Simple HTTP Request Library

Buzz is another library that completes HTTP requests. Because it lacks documentation, you have to read the source code to learn all the parameters it supports.

Project Address: Https://github.com/kriswallsmith/Buzz

Goutte–web Crawl Library

Goutte is a library that crawls Web sites and extracts data. It provides an elegant API that makes it easy to select specific elements from a remote page.

Project Address: Https://github.com/fabpot/Goutte

Carbon–datetime Library

Carbon is a simple extension of the DateTime API.

Project Address: Https://github.com/briannesbitt/Carbon

ubench– Micro-Benchmark Library

Ubench is a miniature library for evaluating PHP code that can monitor (code) execution time and memory usage. It is a good idea to run these checks at development time.

Project Address: Https://github.com/devster/ubench

validation– Input Validation Engine

Validation claims to be the most powerful authentication engine in the PHP library. But can it be a veritable?

This library validates your form or other user-submitted data. In addition, it contains a lot of checks, throws exceptions and custom error messages.

Project Address: Https://github.com/Respect/Validation

filterus– Filter Library

Filterus is another filter library, but it can not only verify, but also filter the output that matches the preset mode.

Filterus has a number of built-in patterns that support chained usage and can even validate array elements with independent validation rules.

Project Address: Https://github.com/ircmaxell/filterus

faker– false Data Generator

Faker is a PHP library that generates fake data for you. It can be useful when you need to populate a test database, or generate test data for your web app.

As soon as you continue to access the object properties, it will continue to return randomly generated data.

Project Address: Https://github.com/fzaninotto/Faker

mustache.php– Elegant Template Gallery

Mustache is a popular template language that has actually been implemented in a variety of programming languages. With it, you can reuse templates in the client or service segment.

Project Address: https://github.com/bobthecow/mustache.php

gaufrette– File System Abstraction Layer

Gaufrette is a PHP5 library that provides an abstraction layer of a file system. It makes it possible to manipulate local files in the same way, FTP servers, Amazon S3, or more. It allows you to develop programs without knowing how you will access your files in the future.

There are also cache and memory adapters, and additional adapters will be added later.

Project Address: Https://github.com/KnpLabs/Gaufrette

omnipay– Payment Processing Library

Omnipay is a PHP payment processing library. It has a clear and consistent API and supports dozens of gateways. Using this library, you just need to learn an API and handle a wide variety of payment processors.

With the same consistent API, it is easy to support multiple payment processors, or to switch when needed.

Project Address: Https://github.com/thephpleague/omnipay

upload– processing file uploads

Upload is a library for simplifying file uploads and validations. When uploading a form, the library verifies the file type and size.

Project Address: Https://github.com/codeguy/Upload

Htmlpurifier–html XSS Protection

Htmlpurifier is an HTML filtering library that protects your code from XSS attacks with powerful whitelisting and aggregation analysis. It also ensures that the output markings conform to the standard.

Project Address: http://htmlpurifier.org/

colorjizz-php– Color Control Library

Colorjizz is a simple library that allows you to convert different color formats and do simple color operations

It already supports and can manipulate all the major color formats.

Project Address: Https://github.com/mikeemoo/ColorJizz-PHP

PHP geo-geo-Location Locator Library

Phpgeo is a simple library for calculating high-precision distances between geographic coordinates.

Project Address: Https://github.com/mjaschen/phpgeo

shellwrap– Graceful Command-line wrapper

With the Shellwrap library, you can use powerful Linux/unix command-line tools in your PHP code.

When an exception occurs at the command line, the library throws an exception, so you can react to it in a timely manner. It also allows you to get more flexibility by piping the output of one command as input to another command.

Project Address: Https://github.com/MrRio/shellwrap

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.