Download the PHP package teewurst/psr4-advanced-wildcard-composer-plugin without Composer

On this page you can find all versions of the php package teewurst/psr4-advanced-wildcard-composer-plugin. 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 psr4-advanced-wildcard-composer-plugin

PSR4 Advanced Wildcard Composer Plugin

Adds a parser so Composer can handle wildcards in your autoload configuration. Because listing every single file by hand is so 2015.

CI codecov

Installation

How it works

Glob patterns and sprintf team up to dynamically replace content in the generated autoload file:

Configuration options

  1. (Recommended) Add wildcards to extra.teewurst/psr4-advanced-wildcard-composer-plugin.autoload.psr-4
  2. Set extra.teewurst/psr4-advanced-wildcard-composer-plugin to a truthy value and use wildcards in your default autoload.psr-4
  3. File autoload wildcards: Use patterns in autoload.files to include matching files automatically (e.g. "app/Helpers/{*}.php" instead of listing each file)

Example

composer.json:

File structure:

Equivalent to:

Limitations & Performance

A few things to keep in mind:

Development (Docker)

A Docker Compose setup is included so you don't need PHP or Composer installed locally.

To use a different PHP version, set PHP_VERSION before building:

Contributing

  1. Create a dummy repository locally and add the plugin as a path dependency:

  2. Run composer require teewurst/psr4-advanced-wildcard-composer-plugin in your dummy repo
  3. Test your changes with composer dump-autoload
  4. xDebug users: Run export COMPOSER_ALLOW_XDEBUG=1 in your terminal session
  5. All contributions must pass composer test and composer analyse

CI & Quality

This project uses GitHub Actions for CI. Every push and pull request runs:

To require a passing build before merging, enable branch protection in your repo settings: Settings → Branches → Add rule and require the "Tests & Coverage" check.


All versions of psr4-advanced-wildcard-composer-plugin with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^1.1|^2.0
php Version ^7.4|^8.0
ext-json Version *
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 teewurst/psr4-advanced-wildcard-composer-plugin contains the following files

Loading the files please wait ...