Download the PHP package sheunl/phpext-skeleton without Composer
On this page you can find all versions of the php package sheunl/phpext-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sheunl/phpext-skeleton
More information about sheunl/phpext-skeleton
Files in sheunl/phpext-skeleton
Package phpext-skeleton
Short Description Create a PHP extension skeleton using ext_skel.php
License PHP-3.01
Informations about the package phpext-skeleton
PHP Extension Skeleton
A tool to quickly generate PHP extension skeletons with all necessary boilerplate code and build configuration files base on the PHP source ext_skel.php script.
Installation
Global Installation (Recommended)
Make sure your global Composer bin directory is in your PATH:
Local Installation
Usage
Create a New Extension
Options
--ext- Extension name (required)--vendor- Vendor/namespace name (required)--author- Author name (optional)--dir- Directory to create extension in (default: current directory)--experimental- Mark extension as experimental--std- Use standard extension template--onlyunix- Generate only Unix build files--onlywindows- Generate only Windows build files
Examples
Create a simple extension:
Create an extension with vendor namespace:
Create an extension with author information:
Building Your Extension
Once the skeleton is created, navigate to the extension directory and build:
Linux/Unix
Enable the Extension
Add to your php.ini:
Or load it directly:
Directory Structure
The generated extension includes:
config.m4- Unix build configurationconfig.w32- Windows build configurationphp_[ext].h- Header file[ext].c- Main extension source[ext].stub.php- Stub file for arginfo generation[ext]_arginfo.h- Generated argument infotests/- Test files directorycomposer.json- Composer configuration
Requirements
- PHP >= 8.2
- Build tools (gcc, make, autoconf, etc.)
License
PHP-3.01
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.