Download the PHP package masgeek/windows-ext-ignorer without Composer

On this page you can find all versions of the php package masgeek/windows-ext-ignorer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package windows-ext-ignorer

Windows Extension Ignorer for Composer

A Composer plugin that automatically ignores platform requirements like ext-pcntl and ext-posix on Windows systems.


🚧 The Problem

Many PHP packages require extensions such as ext-pcntl and ext-posix—extensions that are not available on Windows. As a Windows developer, you're often forced to:

  1. Add the --ignore-platform-reqs flag to every Composer command
  2. Set up custom command aliases
  3. Modify composer.json manually to workaround the missing extensions

✅ The Solution

This plugin automatically detects when you're on a Windows system and spoofs the required extensions for you—no flags, no aliases, no extra steps.

It works out of the box with sensible defaults (ignoring ext-pcntl and ext-posix), and you can also customize which extensions you want to ignore via composer.json!


⚠️ Production Environment Disclaimer

Important:
This plugin is designed for development environments on Windows only.
It should not be used in production environments, staging servers, or CI pipelines that require accurate platform checks.

Ignoring required PHP extensions may cause runtime errors or unexpected behavior in your application. Always ensure your production environment meets the actual extension requirements of your packages.


⚙️ Installation

It’s recommended to install the plugin as a development dependency, since it’s only useful in development environments:


🚀 Usage

Once installed, the plugin just works on Windows.

When running any Composer command:

  1. The plugin detects that you're on Windows
  2. It automatically injects the specified extensions into Composer’s platform config
  3. Composer proceeds without showing errors about missing extensions

🔧 Customizing Ignored Extensions

By default, the plugin injects these extensions into Composer’s platform config:

If you want to ignore additional (or different) extensions, you can specify them in your composer.json file under the extra section.

Example composer.json Configuration:

You can specify any extensions that are not supported or available in your Windows environment.


🖥️ Verbose Output

To see the plugin in action, run Composer with the -v or -vvv flag:

Example output:


⚙️ How It Works

  1. Subscribes to Composer’s pre-command-run event
  2. Detects if the OS is Windows
  3. If true, it merges default and composer.json configured ignored extensions
  4. It updates Composer’s platform config at runtime
  5. After Composer runs, the overrides are cleared (no changes are persisted to your files)

❓ FAQ

Q: Will this modify my composer.json?
A: No. It temporarily adjusts Composer’s internal configuration and does not write to your composer.json file.

Q: Can I use this on Linux or Mac?
A: No. The plugin only activates on Windows (PHP_OS_FAMILY === 'Windows'). On other operating systems, it does nothing.


📝 License

MIT License
Author: Sammy Barasa


All versions of windows-ext-ignorer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
composer-plugin-api Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package masgeek/windows-ext-ignorer contains the following files

Loading the files please wait ....