10 articles about creating extensions-php Tutorial

Source: Internet
Author: User
Because the extension is used by third-party developers, some extra efforts are required to create it. Below are some general guiding principles: * expansion should be self-contained. That is to say, its external dependencies should be the least. If you need to install additional software packages, classes, or resource files for your extension, this will be a headache. * Files belonging to the same extension should be organized in the same directory, and the directory name should be extended. * Classes in the extension should use certain word/letter prefixes to avoid conflicts with other extension names. * The extension should provide detailed installation and API documentation. This will reduce others... since the extension means to be used by third-party developers, some extra effort is required to create it. Below are some general guiding principles: * expansion should be self-contained. That is to say, its external dependencies should be the least. If you need to install additional software packages, classes, or resource files for your extension, this will be a headache. * Files belonging to the same extension should be organized in the same directory, and the directory name should be extended. * Classes in the extension should use certain word/letter prefixes to avoid conflicts with other extension names. * The extension should provide detailed installation and API documentation. This reduces the time and effort spent by other developers when using extensions. * The extension should be licensed as appropriate. If you want your extensions to be used in open-source and closed-source projects, you can consider using licenses, such as BSD and MIT, but not GPL, because it requires the derived code to be open-source. Next, we will describe how to create a new extension based on the categories described in overview. These descriptions also apply when you create a component that is mainly used for your project. 1. Application Component

1. Yii Framework official guide series 35-extension Yii: Create extension

Introduction: extensions are used by third-party developers and require extra efforts to create them. Below are some general guiding principles: * expansion should be self-contained. That is to say, its external dependencies should be the least. If your extension...

2. use rust to create php extensions

Introduction: In last October, I had a discussion with Etsy about how to expand writing for an explanatory language like PHP. Ruby or Python is now much easier than PHP. We have talked about the obstacle to writing a program that successfully creates Extensions. they usually need to be written in C, but if you are not good at C, it is hard to have that confidence.

3. php C ++ extension development php c framework php c Extension framework php c extensio

Introduction: p c, php: php C ++ extension development: I learned the development process of PHP c extension in the last two days. We hereby record many pitfalls encountered in the middle. Create a mongo_cpp extension 1. create extension directory # cd php-5.3.6/ext #. /ext_skel -- extname = hello2. edit config. m4: PHP_ARG_ENABLE (hello, whether to enable hello support, Ma

4. tutorial on php extension in C language in linux

Introduction: C language extension for php in linux. 1. set up a php environment to download the php 5.2.6 source code, decompress, compile, and install the php environment, and create an extension project. go to the source code directory cd php5.2.6/ext/./ext_skel -- extname = my_ext to create a name.

5. Introduction to php opp mechanism and mode (abstract class, interface and contractual programming) _ PHP Tutorial

Overview: php opp mechanism and mode introduction (abstract class, interface and contractual programming ). 1. in the abstract class mechanism, a common base class is always defined, and specific details are left to the successor for implementation. Through abstract concepts, you can create excellent scalability in development projects.

6. c language extension for php in linux

Introduction: C language extension for php in linux. 1. set up a php environment to download the php 5.2.6 source code, decompress, compile, and install the php environment, and create an extension project. go to the source code directory cd php5.2.6/ext/./ext_skel -- extname = my_ext to create a name.

7. router firewall configuration command

Introduction: 1. access-list is used to create access rules. (1) create a standard access list access-list [normal | special] listnumber1 {permit | deny} source-addr [source-mask] (2) create extended access list access-list [normal | special] listnumber2 {permit | deny} protoco

8. Summary of Huawei router firewall configuration commands (I)

Introduction: 1. access-list is used to create access rules. (1) create a standard access list access-list [normal | special] listnumber1 {permit | deny} source-addr [source-mask] (2) create extended access list access-list [normal | special] listnumber2 {permit | deny} protoco

9. Zend API: in-depth PHP kernel

Introduction: http://roygu.com/doc/blog/pe-to-php-core.html Zend API: deep PHP kernel translation and directory translation http://www.yAnbiN.org PHP Chinese manual The Zend API: overview of extended PHP kernel directory overview extended source code layout automatic build system start creation extended use extended troubleshooting about module code

[Related Q & A recommendations ]:

How to create extended partitions and create logical partitions in linux

The above is a detailed recommendation for 10 articles about creating extensions. For more information, see other related articles in the first PHP community!

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.