PHPackages                             sheunl/phpext-skeleton - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sheunl/phpext-skeleton

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sheunl/phpext-skeleton
======================

Create a PHP extension skeleton using ext\_skel.php

v0.0.2(3mo ago)04↓93.3%PHP-3.01PHPPHP &gt;=8.2

Since Apr 4Pushed 3mo agoCompare

[ Source](https://github.com/sheunl/phpext-skeleton)[ Packagist](https://packagist.org/packages/sheunl/phpext-skeleton)[ RSS](/packages/sheunl-phpext-skeleton/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

PHP Extension 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
------------

[](#installation)

### Global Installation (Recommended)

[](#global-installation-recommended)

```
composer global require sheunl/phpext-skeleton
```

Make sure your global Composer bin directory is in your PATH:

```
export PATH="$HOME/.composer/vendor/bin:$PATH"
# or
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
```

### Local Installation

[](#local-installation)

```
composer require --dev sheunl/phpext-skeleton
```

Usage
-----

[](#usage)

### Create a New Extension

[](#create-a-new-extension)

```
php-start-extension --ext extension_name [--vendor vendor_name] [--author "Your Name"]
```

#### Options

[](#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

[](#examples)

Create a simple extension:

```
php-start-extension --ext myext
```

Create an extension with vendor namespace:

```
php-start-extension --ext myext --vendor mycompany
```

Create an extension with author information:

```
php-start-extension --ext myext --author "John Doe"
```

Building Your Extension
-----------------------

[](#building-your-extension)

Once the skeleton is created, navigate to the extension directory and build:

### Linux/Unix

[](#linuxunix)

```
cd myext
phpize
./configure
make
make test
sudo make install
```

### Enable the Extension

[](#enable-the-extension)

Add to your `php.ini`:

```
extension=myext.so
```

Or load it directly:

```
php -dextension=./modules/myext.so -m | grep myext
```

Directory Structure
-------------------

[](#directory-structure)

The generated extension includes:

- `config.m4` - Unix build configuration
- `config.w32` - Windows build configuration
- `php_[ext].h` - Header file
- `[ext].c` - Main extension source
- `[ext].stub.php` - Stub file for arginfo generation
- `[ext]_arginfo.h` - Generated argument info
- `tests/` - Test files directory
- `composer.json` - Composer configuration

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Build tools (gcc, make, autoconf, etc.)

License
-------

[](#license)

PHP-3.01

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit issues or pull requests.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance82

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

92d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5263d5656fe4088cb3e554bb1b6c9ea9dc43a9227a2763ac841ff236f038313e?d=identicon)[sheunl](/maintainers/sheunl)

---

Top Contributors

[![sheunl](https://avatars.githubusercontent.com/u/18687649?v=4)](https://github.com/sheunl "sheunl (4 commits)")

### Embed Badge

![Health badge](/badges/sheunl-phpext-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/sheunl-phpext-skeleton/health.svg)](https://phpackages.com/packages/sheunl-phpext-skeleton)
```

###  Alternatives

[sheadawson/silverstripe-blocks

An alternative to the SilverStripe Widgets module.

5955.6k5](/packages/sheadawson-silverstripe-blocks)[pfaciana/tiny-html-minifier

Minify HTML in PHP with just a single class

12104.0k4](/packages/pfaciana-tiny-html-minifier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
