A very useful 15 open source PHP class Library

Source: Internet
Author: User
Tags image processing library php class

The PHP library provides developers with a standard interface that helps developers take advantage of object-oriented programming in PHP. These libraries provide a standard API for specific types of built-in functionality, allowing classes to interact seamlessly with the PHP engine. In addition, developers can use these libraries to streamline workflows and provide productivity.

Let's take a look at these very useful and free class libraries and hopefully they will help you.

1.Requests

Requests is a PHP-written HTTP library that adheres to the ISC Open source protocol and is hosted on GitHub. Requests replaces all work outside of Python http/1.1 ——— allows you to seamlessly integrate with Web services.

Requests provides a consistent API and uses Curl or fsockopen (depending on availability), it also simplifies sending requests, accepting head, GET, POST, PUT, delete, or patch and adding headers, form data, and multiple-part files. Second, the library also applies to international domain names, authentication, automatic compression gzip compression response, and so on. As you can see from the above, requests is a very useful and friendly label for hosting HTTP requests.

2.Munee

Munee is a PHP library that integrates image resizing, css-js merging/compressing, caching, and more. Resources can be cached on both the server side and the client. It integrates the PHP picture manipulation Library Imagine to achieve picture resizing and clipping, then caching.

Munee can automatically compile less, scss, and Coffeescript, and can combine css+js files into a single request, and you can also fine-scale these css-js files for better performance. The library can also be easily integrated with any code.

3.Ratchet

Ratchet is a PHP library, WebSockets Toolkit that developers can use to build real-time, bi-directional app applications between the client and server side, and to build event-driven applications quickly and easily (rather than traditional HTTP request/response applications).

4.Swift Mailer

Swift Mailer is a feature-rich PHP Mail library that does not rely on PHP's own mail () functions because it consumes a high amount of system resources when sending multiple messages. Swift communicates directly with the SMTP server, with very high transmission speed and efficiency.

5.Unirest

Unirest is a lightweight HTTP development library that can be used in development languages such as PHP, Ruby, Python, Java, Objective-c, and more. Support for GET, POST, PUT, UPDATE, delete operations, and its invocation method and return results are the same for all development languages.

6.Detector

Detector is an open source PHP class library that detects the user's browser environment. It can get browser usage and browser HTML5 CSS3 features, and analyze whether it is mobile, tablet, desktop or web crawler and other items such as: color depth, video size, cookies, etc. The library uses a single user-agent string for each browser user to automatically adapt to new browsers, versions, and devices.

7.PHP Thumb

PHP Thumb is a PHP class used to generate thumbnails of images. Just a few lines of code, support a variety of image sources, including the file system or database, support most image formats. And the picture can be rotated, cut, watermark and so on. The quality of the thumbnails can be customized to provide built-in caches to reduce the load on the server.

8.Zebra Image

Zebra image is an open source lightweight image processing library and is an object-oriented library that requires only PHP GD2 extensions and supports scaling, cropping, rotating, and flipping operations. It can be used in formats such as. jpg,. gif,. png, and so on.

9.Hybrid Auth

Hybridauth is an open source PHP class library that provides verification capabilities via Weibo/social networking sites and IDs to enable simultaneous login site functionality. It is easy to integrate with existing sites and can be logged in by referencing a file and adding a few lines of code. Once verified, Hybridauth will provide standardized information for connecting users. Furthermore, in addition to the validation feature, this class library allows us to interact with the social API client that the user connects to.

Ten. Gantt Charts

Gantti is an open source PHP class that helps users generate Gantt charts on the fly. Using Gantti to create a chart without using JavaScript is pure HTML5-CSS3. The default output of the chart is pretty, but the user can customize the style for output (SASS style sheet).

11.Mobile Detect

Mobile Detect is a PHP class that detects a variety of mobile devices through user-agent and combines HTTP headers to detect mobile environments. The most powerful part of the library is that it has a very complete library that detects the type of device used (including the type of operation, the ability to detect the phone's brand, etc.) and the browser's details.

12.ImageWorkshop

As the name implies, Imageworkshop is a PHP class library that manages and manipulates pictures, which has the logic of similar image editing software: Layer-based concepts that can overlay many layers or layers (different manipulation options per layer). It also supports many features, such as watermarks, cropping, moving, zooming, rotating, stacking, and so on.

13.JqmPhp

Jqmphp is a PHP open source class library designed to simplify jquery and PHP for mobile development, creating the HTML files needed to use the jquery mobile framework. The files of the class library are independent, so you can choose to use them as needed.

14.PHP Image Cache

Image cache is a lightweight PHP class that compresses, moves, and caches images in the user's browser. This class provides some simple settings such as directories, root path URLs, and so on, and then calls the compression function for each image.

15.Imagine

Imagine is an object-oriented PHP class library for picture manipulation. This class library can handle a number of commonly used operations such as scaling, cropping, application filtering, and so on. Its color class library can be used to generate RGB values for any particular color. It also provides some ways to draw graphs such as arcs, ellipses, lines, slices, and so on.

From: Codegeekz

A very useful 15 open source PHP class Library

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.