Summary of commonly used class libraries and techniques in PHP

不言
Release: 2023-04-03 14:30:01
Original
2214 people have browsed it

This article introduces to you a summary of commonly used class libraries and techniques in PHP. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

Dependency Management

Package and framework for dependency management

Composer / Packagist - A package and dependency manager.

Composer Installers - A multi-framework Composer library installer

pickle - PHP extension installer

Melody - A tool to build one file Composer scripts.

Frameworks

Web development framework

Symfony2 - a framework composed of independent components (SP2)

Zend Framework 2 - also composed of independent components Component framework (ZF2)

Laravel 5 - Simple and elegant PHP Web development framework (L5)

Aura PHP - Independent component framework

Yii2 - For development High-performance PHP framework for large-scale web applications

Nette - also a framework composed of independent components

PPI Framework 2 - an interactive framework

CakePHP - an efficient Application Development Framework (CP)

Phalcon - A framework as a C extension

Yaf - Brother Bird's C extension framework

swoole-yaf

Components

Aura Components - A component package for PHP5.4

Hoa Project - A collection of PHP components

Micro-framework (Micro Frameworks)

Micro Frameworks and Routing

Silex - Micro framework based on Symphony2 components

Silex Skeleton - Project framework for Silex

Silex Web Profiler - Web debugging toolbar for Silex

Slim - Another simple micro-framework

Slim Skeleton - A framework for Slim

Slim View - Slim's custom views set

Slim Middleware - Slim's custom middleware collection

SlimMVC-Skeleton - Slim implements MVC and some components based on it

Bullet PHP - A micro-framework for building REST APIs

Lumen - A micro-framework based on Laravel

Proton - A micro-PHP framework

blink - A micro-framework for building "long running" services The Web micro-high-performance framework

Routing (Routers)

Fast Route - an efficient routing library

Route - Fast Route-based routing Library

Pux - Another efficient routing library

Klein - A flexible routing library

Macaw - A simple PHP router that is super lean, fast and sexy.

Template engine (Templating)

Template and lexical analysis libraries and tools

Twig - a comprehensive template language

Twig Cache Extension - Template fragment caching library for Twig

Mustache - Mustache template language implemented in PHP

Phly Mustache - Another Mustache template language implemented in PHP

MtHaml - HAML template language implemented in PHP

PHPTAL - TAL template language implemented in PHP

Plates - an original PHP template library

Lex - a lightweight template parsing

Static Site Generators

Preprocessing tool for generating web page content

Sculpin - Convert Markdown and Twig to Static HTML tool

Phrozn - Another tool to convert Textile, Markdown and Twig to HTML

HTTP

For HTTP and crawling Get the website's library

Guzzle - a complete HTTP client

Buzz - another HTTP client

Requests - a simple HTTP library

HTTPFul - A chained HTTP client

Goutte - A simple web scraper

PHP VCR - A library for recording and playback of HTTP requests

Middle Middlewares

Middleware for building application class libraries

URL

Library for parsing URLs

Purl - a URL manipulation library

PHP Domain Parser - a local suffix parser

Uri - a simple URL manipulation library

Email ( Email )

Library for sending and parsing Email

SwiftMailer - A solution for one mail program

PHPMailer - A solution for another mail program

Fetch - an IMAP library

Email Reply Parser - an email reply parser library

Stampie - a library for email services, such as SendGrid, PostMark, MailGun and Mandrill

CssToInlineStyles - An inline CSS library in email templates

Email Validator - A compact email validation library

File operations (Files)

About file handling and MIME type checking

Gaufrette - An abstraction layer for file streams

Flysystem -Another abstraction layer for file streams

Canal - An abstraction layer for checking Internet media types The library

Apache MIME Types - A library for parsing Apache MIME types

Ferret - A MIME detection library

Hoa Mime - Another MIME detection library

Lurker - A resource tracking library

PHP File Locator - A library for locating files in large projects

PHP FFmpeg - a library for FFmpeg video packaging

CSV - a CSV data manipulation library

Stream (Stream)

processing Stream library

Streamer - a simple object-oriented stream packaging library

Dependency Injection(Dependency Injection)

Library that implements dependency injection design pattern

Pimple - a small dependency injection container

Auryn - another small dependency injection container

Container - another flexible dependency injection container

PHP DI - an annotation Implemented Dependency Injection

Acclimate - A common interface for dependency injection containers and service locators

Symfony DI - A dependency injection component (SF2)

Image ( Imagery )

Library for processing images

Imagine - an image processing library

PHP Image Workshop - another image processing library

Intervention Image - It is also an image processing library

GIF Frame Extractor - A library for extracting GIF animation frame information

GIF Creator - A library for creating GIF animations from multiple images

Image With Text - A library for embedding text in images

Color Extractor - A library for extracting colors from images

Glide - An on-demand image processing library

Image Optimizer - A library for optimizing images

PHPThumb -A thumbnail processing library

Testing

Testing code library and library for generating test data

PHPUnit - A unit testing framework

DBUnit - PHPUnit's code testing library

ParaTest - PHPUnit's parallel testing library

PHPSpec - A unit testing library based on specifications

Codeception - A full-stack testing framework

AspectMock - A mocking framework for PHPUnit/Codeception

Atoum - A simple testing library

Mockery - A mock object for testing Library

Phake - Another mock object library for testing

Prophecy - A powerful simulation framework

Faker - A fake data generation library

Samsui - Another fake data generation library

Alice - A library for generating complex data

Behat - A testing framework for behavior-driven development (BDD)

Pho - Another A testing framework for behavior-driven development

Mink - Web acceptance testing

HTTP Mock - A library to simulate HTTP requests in unit tests

VFS Stream - A library for testing Virtual File System Stream Wrapper

VFS - Another virtual file system for testing

Locust - A modern load testing library developed in Python

Peridot - An event-driven Testing framework

Continuous Integration(Continuous Integration)

Continuous integration libraries and applications

Travis CI - a continuous integration platform

SemaphoreCI - a A continuous integration platform for open source programs and private projects

PHPCI - An open source continuous integration platform for PHP

Sismo - A continuous test server library

Jenkins - PHP supported Continuous integration platform

JoliCi - Continuous integration client developed by PHP and supported by Docker

Documentation(Documentation)

Library for generating project documentation

Sami - An API Documentation Generator

APIGen - Another API Documentation Generator

PHP Documentor 2 - Documentation Generator

phpDox - A documentation generator for PHP projects (not only API documentation only)

Security

Library for generating secure random numbers, encrypting data, scanning for vulnerabilities, and tokens

HTML Purifier - a standard HTML Filter

RandomLib - Library for generating random numbers and random strings

True Random - Library for generating random numbers using www.random.org

SecurityMultiTool - A PHP Security Library

PHPSecLib - A pure PHP secure communication library

TCrypto - A simple key-value encryption repository

PHP IDS - A structured PHP security layer

PHP SSH - Object-oriented SSH wrapper library

IniScan - A tool to scan the security of PHP INI files

SensioLabs Security Check - A web tool that checks Composer dependencies according to security recommendations Tool

Zed - Integrated penetration testing tool for web applications

php-jwt (JSON Web Token) - JSON Web Token Library

jose - JSON Signing and Encryption Library

Passwords

Libraries and tools for handling and storing passwords

Password Compat - A compatibility library for the new PHP5.5 password functionality

phpass - A portable password hashing framework

PHP Password Lib - A library for generating and verifying passwords

Password Policy - A password rule library for PHP and JavaScript

Password Validator - A library to verify and upgrade password hashes

Zxcvbn PHP - A PHP display password strength estimation library based on Zxcvbn JS

GenPhrase - A library to generate secure random passwords

Code Analysis

Tools for analyzing, parsing and manipulating code bases

PHP Parser - A PHP parser written in PHP

PHPPHP - A PHP virtual machine implemented by PHP

PHPSandbox - PHP sandbox environment

Dissect - A collection of lexical and syntactic analysis tools

PHP Mess Detector - A library that scans for code bugs, suboptimal code and unused parameters

PHP Code Sniffer - A library that detects standards conflicts in PHP, CSS and JS code

PHPCPD - A library for detecting copied and pasted code

PHP Analyser - A library for analyzing errors in PHP code

PHP CS Fixer - A code standard library

PHP Manipulator - Used A library for analyzing and modifying PHP source code

PHP Metrics - a static measurement library

PHP Refactoring Browser - a command line tool for refactoring PHP code

UBench - A simple small benchmark library

Athletic - An annotation-based benchmark library

Mondrian - A code analysis tool using graph theory

Scrutinizer - Check PHP code Web Tools

PHPLOC - A tool to quickly assess the size of your PHP project

PHPCcheckstyle - A tool to help adhere to specific coding rules

PhpDependencyAnalysis - A tool to create customizable dependency charts Tools

Code Climate - automated code review

PHP Error - used to convert standard PHP error messages, mainly used for debugging during the development process

Architectural )

Library about design patterns, programming specifications and code organization

PHP Option - a PHP option type library

Ruler - a simple stateless generation The engine of environmental rules

Finite - a simple PHP finite state machine

Compose - a functional combination library

Monad PHP - a simple Monad library

Patchwork - A function library that redefines users

Galapagos - Language conversion evolution

Design Patterns PHP - A library of design pattern examples implemented using PHP

Functional PHP - A function Format programming library

Lib Accessor - A library that simplifies access

Iter - A library that provides iteration primitives using generators

Debugging and Profiling

Libraries and tools for debugging code

xDebug - a PHP debugging and analysis tool

PHP Debug Bar - a debugging toolbar

PHP Console - Web Debug Console

Barbushin PHP Console - A web debugging control tool using Google Chrome

PHPDBG - An interactive PHP debugger

Tracy - A simple error detection , log and time measurement library

Z-Ray - a debugging and performance analysis tool

xHprof - Facebook's open source PHP performance evaluation tool

Blackfire.io - a low Overhead code profiler

Kint - a debugging and performance analysis tool

Build Tools

Project build and automation tools

Go - A simple PHP build tool

Bob - A simple project automation tool

Phake - A PHP clone library

Box - A tool for building PHAR files

Phing - PHP project build system based on Apache Ant

Task Runners (Task Runners)

Library for automatically running tasks

Task - Based on Grunt and Gulp Pure PHP task runner

Robo - Object-oriented PHP task runner

Bldr - PHP task runner built on Symfony components

Navigation(Navigation)

Tools for building navigation structures

KnpMenu - a menu library

Cartographer - a site map generation library

Asset Management

Tools for managing, compressing and minimizing website resources

Assetic - a pipeline library for resource management

Pipe - another pipeline library for resource management

Munee - A resource optimization library

JShrink - A JavaScript compression library

Puli - A library for detecting the absolute path of resources

Geolocation

A library that uses latitude and longitude to encode addresses

GeoCoder - a geocoding library

GeoTools - a library related to geographical tools

PHPGeo - a simple geography library

GeoJSON - An implementation of GeoJSON

Date and Time(Date and Time)

Library for processing date and time

Carbon - A simple date and time API extension

ExpressiveDate - Another date and time API extension

CalendR - A calendar management library

Event (Event)

Event-driven or non-blocking event loop implementation Library

React - An event-driven non-blocking I/O library

Rx.PHP - A react extension library

Ratchet - A web socket library

Hoa WebSocket - Another Web Socket Library

Elephant.io - Another Web Socket Library

Hoa EventSource - An Event Source Library

Evenement - An event dispatch library

Event - Event package for your app and/or domain.

Cake Event - An event dispatch library

Broadway - An event source and CQRS Library

Logging

Library for generating and processing log files

Monolog - a comprehensive logging library

KLogger - an easy-to-use PSR-3 log class used

Analog - a micro-logging package with opportunistic closure

E-commerce(E-commerce)

Used for payment and building online e-commerce Store libraries and applications

OmniPay - A framework for multi-gateway payment processing

Payum - An abstract library for payments

Sylius - An open source e-commerce solution

Thelia - Another open source e-commerce solution

Money - Fowler money model implemented in PHP

Sebastian Money - a library for handling monetary values

Swap - an exchange rate library

PDF

Libraries and software for processing PDF files

Snappy - a PDF and image generation library

WKHTMLToPDF - a tool to convert HTML to PDF

PHPPdf - A library that converts XML to PDF and images

Office

A processing library for various documents in the Office suite

PHPWord - Processes Word documents Library

PHPExcel - A library for processing Excel documents

PHPPowerPoint - A library for processing PPT slides

ExcelAnt - A library for operating Excel documents

Database ( Database )

Database interaction library using object relational mapping (ORM) or data mapping technology

Doctrine - a complete DBAL and ORM

Doctrine Extensions - a Doctrine behavior Extended Collections

Propel - A fast ORM, migration and query library

Eloquent - Laravel 5 ORM (L5)

Baum - A nested collection for Eloquent

Spot2 - ORM mapper for MySQL

RedBean - A lightweight, easy-to-configure ORM

Pomm - An object model manager for PostgreSQL

ProxyManager - A collection of tools for data mapping to generate proxy objects

Cake ORM - Object relational mapper, which implements the use of data mapping pattern (CP)

Medoo - A lightweight accelerated development ORM

Migrations

Library for managing database schemas and migrations

PHPMig - a migration management library

Phinx - a database migration Management library

Migrations - Another migration management library

Doctrine Migrations - A migration library for Doctrine

Non-relational database (NoSQL)

processing NoSQL backend library

MongoQB - a MongoDB query building library

Monga - an abstract library for MongoDB

Predis - a fully functional Redis library

Queue(Queue)

Library for handling event and task queues

Pheanstalk - a Beanstalkd client library

PHP AMQP - a pure PHP AMQP library

Thumper - a RabbitMQ pattern library

Bernard - a multi-backend abstract library

php-resque - a message queue based on redis

Gearman - task distribution system

Search

Libraries and software related to indexing and executing queries in data

ElasticSearch PHP - The official client library for ElasticSearch.

Elastica - Another ElasticSearch client library

Solarium - Solr's client library.

SphinxQL query builder - Sphinx search engine query library

Command Line )

Library for building command line tools

symfony/console - Symfony command line worker component

Boris - A miniature PHP REPL

PsySH - another A PHP REPL

Pecan - An event-driven, non-blocking shell

GetOpt - A command line selection parser

OptParse - Another command line selection parser

Commando - A simple command line selection parser

GetOptionKit - Also a command line selection parser

Cron Expression - A library for calculating cron run date

ShellWrap - A simple command line wrapper library

Hoa Console - Another command line library

Shunt - A command line library that runs in parallel on multiple remote machines

Cilex - A small framework for building command line tools

CLImate - A library for output colors and special formats

Webmozart Console

Authentication (Authentication and Authorization)

Library that implements authentication mode

Sentinel - A framework for authentication and authorization

Sentinel Social - A library for social network authentication

Opauth - Provided It supports OAuth authentication and provides a unified standard access method

OAuth2 Server - an OAuth2 authentication server, resource server and client library

OAuth2 Server - an OAuth2 server implementation

PHP oAuthLib - Another OAuth library

TwitterOAuth - A Twitter OAuth library

TwitterSDK - A fully tested Twitter SDK

Hawk - A Hawk HTTP authentication library

HybridAuth - An open source social login library

Lock - An Access Control Lists (ACL) system library.

OAuth 1.0 Client - An OAuth 1.0 client library.

OAuth 2.0 Client - An OAuth 2.0 client library.

Sentry - Authentication and authorization system

EvaOAuth - Unified interface OAuth login PHP class library

Markup (Markup)

Library for handling markup

Decoda - a lightweight markup parsing library

PHP Markdown - Markdown parser

CommonMark PHP - A Markdown parser that supports CommonMark spec.

Parsedown - A Markdown parser

Ciconia - A Markdown parser that supports Github style

Cebe Markdown - A fast, extensible Markdown parser

HTML5 PHP - A library for HTML5 parsing and serialization

Emoji - A simple class library for processing emoji

Strings(Strings)

Library for parsing and manipulating strings

ANSI to HTML5 - A library that will ANSI to HTML5 conversion library

Patchwork UTF-8 - A portable library that handles UTF-8 format strings

Hoa String - Another UTF-8 format string library

Stringy - A string manipulation library with multi-byte support

Color Jizz - A library for processing and converting colors

UUID - A library for generating UUIDs

Slugify - A library for converting strings to slug format

Urlify - a PHP port of Django URLify.js

Text - a text processing library

SQL Formatter - a PHP port for Django URLify.js Library for formatting SQL statements

UA Parser - A library that parses UA (User Agent) strings

Device Detector - Another library that parses UA (User Agent) strings

Mobile-Detect - A lightweight library to detect mobile devices (including desktop devices)

Browser - Detect the user's browser environment

Numbers(Numbers)

Library for handling numbers

Numbers PHP - A library for handling numbers

Math - A library for handling larger numbers

ByteUnits - A library for handling numbers in binary and measurement systems Library for parsing, formatting and converting byte units

PHP Units of Measure - A library for converting between units of measurement

PHP Conversion - Another library for converting between units of measurement

LibPhoneNumber for PHP - Google phone number processing system library implemented in PHP

hashids.php - Used to generate a unique string from an integer (for example: hiding the real id by encrypting and decrypting the id)

Filtering and Validation (Filtering ang Validation)

Library for filtering and validating data

Filterus - a simple PHP filtering library

Respect Validation - a simple validation Library

Valitron - Another data validation library

Cake Validation - Another data validation library

php-readability - Content analysis algorithm

Upload - a A library that handles file upload and verification

DMS Filter - an annotation-based filtering library

MetaYaml - a schema validation library that supports YAML, JSON and XML

ISO-codes - Libraries to validate different ISO and ZIP encodings

REST and API

Libraries and web frameworks for developing restful APIs

Apigility - An API built using Zend Framework2 Server

Hateoas - A HATEOAS REST web service library

HAL - A Hypertext Application Language (HAL) building library

Negotiation - A content negotiation library

Drest - A library that displays Doctrine entities as REST resource nodes

Restler - A lightweight framework that displays PHP methods as RESTful web APIs

fractal - [Best Practices ] Unified processing of data return

Caching

Library for caching data

Alternative PHP Cache (APC) - PHP's open source opcode cache

Doctrine Cache - a cache library.

Zend Cache - another cache library

Cake Cache - a library for caching

Stash - another cache library

CacheTool - A command line tool to clear APC/opcode cache

PhpFastCache - PHP cache library

Data Structure and Storage(Data Structure and Storage)

Library that implements data structures and storage technologies

Ardent - a data structure library

PHP Collections - a simple collection library

Serializer - for serialization and deserialization Data library

Zend Serializer - Another library for serializing and deserializing data

PHP Object Storage - A library for object storage

Fractal - A library to convert complex data structures into JSON output

Totem - A library to manage and create data modification sets

PINQ - PHP real-time Linq library

JsonMapper - A library to convert A library that maps embedded JSON structures to PHP classes

Cake Collection - a simple collection library

Notifications

Library about notifications

Nod - a notification library

Notificato - a library for processing push messages

Notification Pusher - an independent library for device push notifications

Notificator - a lightweight notification library

Deployment

Library for project deployment

Pomander - a deployment tool for PHP applications

Rocketeer - a fast and simple deployer for PHP

Envoy - a tool for running SSH tasks using PHP

Plum - a deployment library

Deployer - a deployment tool

Internationalization and localization and Localisation)

Library for internationalization (I18n) and localization (L10n)

Aura Intl

Cake I18n - Translation and localization messages

Third Party APIs

Library for accessing third-party APIs

Extensions

Library to help build PHP extensions

Zephir - A compiled language between PHP and C for developing PHP extensions

PHP CPP - A C library for developing PHP extensions

Other (Miscellaneous)

Useful class libraries and tools that do not belong to the above categories

pinyin - A library for converting Chinese characters to Pinyin

Pinyin - A library for converting Chinese characters to Pinyin

class.upload.php - File upload processing class

php-paginator - Pagination processing class

Underscore.php - PHP implementation of Underscore.js

Flexihash - Consistent hash library

Eden - A PHP rapid development library, which contains many components for automatic loading, event-driven, file system, cache, template, internationalization, database, web service, payment Gateway, onboarding and cloud services technologies.

html-parser - html parsing tool

PHPCrawl - PHP crawler framework

Recommended related articles:

PHPStorm is as follows under laradockHow to perform Xdebug breakpoint debugging

php method to obtain video length and php.ini configuration

The above is the detailed content of Summary of commonly used class libraries and techniques in PHP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!