Home > Article > Backend Development > Detailed introduction to common extensions in php
php extensions are mainly divided into two categories: php module extensions and zend module extensions. Below, the editor will introduce to you the php module extension and zend module extension. You can refer to it if necessary.
php extensions are mainly divided into two categories: php module extensions and zend module extensions. The relevant functions are as follows:
[PHP Modules]
bz2
is used to read and write bzip2 transparently ( .bz2) compressed file.
calendar
calendar
http://php.net/manual/zh/intro.calendar.php
ctype
Character detection
http://php.net/manual/zh/book.ctype.php
curl
Supports the libcurl library created by Daniel Stenberg, which can connect and communicate with various servers and use various protocols.
#date
Date
dom
The dom extension allows you to use php via the dom api in xml Operate on the document.
exif
Exchangeable image information
http://php.net/manual/zh/book.exif.php
fileinfo
It applies to improvements in file handling.
filter
File filtering
ftp
Provides access to files via File Transfer Protocol (FTP) Client access to the server
gd
Image generation and processing
gettext
implements NLS (Native Language Support) API, which can be used to internationalize your PHP programs.
gmp
GNU multi-precision
hash
Encryption extension
iconv
Contains the interface for the iconv character set conversion function.
igbinary
Serialization and deserialization are more efficient than Php’s own.
imagick
Image Processing
intl
The Internationalization extension (further known as Intl) is a wrapper around the ICU library that enables PHP programmers to perform a variety of Locale-aware operations, including but not limited to formatting, transliteration, transcoding, calendar operations, UCA conformance collation, text positioning boundaries and the use of locale identifiers, time zones and glyphs, it tends to follow the ICU API closely and therefore has the ability to use C People with ICU experience in /C or Java can easily use the PHP API. Furthermore, such ICU files will help in understanding various ICU features.
json
json serialization related operations
libxml
libxml functions and constants are related to SimpleXML, XSLT is used together with DOM.
mbstring
Multi-byte string
memcached
memcached extension
mongodb
mongodb extension
mysqli
It is an enhanced version of the mysql system function, which is more stable, efficient and secure , corresponding to mysql_query() is mysqli_query(), which is object-oriented and uses objects to operate and drive the mysql database. Mysqli is a permanent connection function. Running mysqli multiple times will use the same connection process, thus reducing server overhead.
mysqlnd
MYSQLND provides support for the underlying interaction with the database (can be simply understood as network protocol interaction with the MySQL server).
openssl
Symmetric/asymmetric encryption and decryption, as well as PBKDF2, PKCS7, PKCS12, X509 and other encryption operations
pcntl
Multiple processes
pcre
regular
PDO
pdo Provides a unified API interface so that your PHP application does not care about the specific database server system type to be connected. In other words, if you use PDO's API, you can seamlessly switch database servers whenever needed. For example, any database such as MYSQL or SQLITE will work.
That is to say, from the perspective of most functions, the API interface provided by PDO and the interface provided by MYSQLI have the same effect on ordinary additions, deletions, modifications and queries.
pdo_mysql
PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to get from PHP to MySQL 3.x, 4.x and 5.x database access.
pdo_sqlite
PDO_SQLITE is a driver that implements the PHP Data Object (PDO) interface to access SQLite 3 databases.
Phar
After PHP5.3, a Java-like jar package named phar is supported. Used to package multiple PHP files into one file. This feature allows PHP to package and componentize applications as easily as Java. An application can be packaged into a Phar package and run directly in PHP-FPM.
posix
This module contains interfaces for those functions defined in the IEEE 1003.1 (POSIX.1) standard document that cannot be accessed by other means.
Used in process control.
readline
The readline extension function implements an interface to access the GNU Readline library. These functions provide an editable command line.
redis
redis extension
Reflection
It is used to export or extract detailed information about classes, methods, properties, parameters, etc., including comments.
shmop
Shared memory
SimpleXML
Processing xml
sockets
The Socket extension is based on the popular BSD sockets and implements the underlying interface for socket communication functions. It can be used as a socket server like the client.
SPL
SPL is a collection of interfaces and classes used to solve standard problems.
sqlite3
Support information for SQLite v3 database.
standard
Standard Library
sysvmsg
System V Semaphore
sysvsem
Message Queue
sysvshm
sysvshm provides a memory sharing solution
tokenizer
The tokenizer function provides a calling interface for the "PHP tokenizer" embedded in the Zend engine. Using these functions, you can write your own PHP source code analysis or modification tools without having to deal with language specifications at the lexical analysis level.
wddx
Web Distributed Data Exchange (WDDX)
https://blog.csdn.net/guoguo1980/article/details/2436342
xml
XML Parser
xmlreader
The XMLReader extension is an XML Pull parser.
xmlwriter
This is the XMLWriter extension. It wraps the libxml xmlWriter API.
This extension represents an author that provides a non-caching, forward-only way to generate streams or files containing XML data.
xsl
refers to the extended style sheet language.
mcrypt
is an encryption extension library. Loading it can use the 22 encryption and decryption algorithms that come with it
[Zend Modules]
Zend OPcache
opcache extension, caches Opocdes compiled from php code, eliminating the need for previous compilation steps every time it is requested. . Replaces the previous apc .
If you want to take advantage of APC's user cache, you also need to install APCu. APCu is available through PECL. APCu provides a complete backwards compatibility API for the shared memory user space cache provided by APC. APCu should not be installed with APC.
https://support.cloud.engineyard.com/hc/en-us/articles/205411888-PHP-Performance-I-Everything-You-Need-to-Know-About-OpCode-Caches
Recommended learning: php video tutorial
The above is the detailed content of Detailed introduction to common extensions in php. For more information, please follow other related articles on the PHP Chinese website!