Download the PHP package michaeluno/php-classmap-generator without Composer

On this page you can find all versions of the php package michaeluno/php-classmap-generator. 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 php-classmap-generator

PHP Class Map Generator

A PHP class that generates class maps for autoload.

Installation

Composer

To install the library using Composer, run

Usage

Instantiate the class with options.

This creates a class map file looking like a following.

Before including the map file, define the constant CLASS_MAP_BASE_DIR_VAR in your PHP script.

or whatever the base directory path should be.

This automatically inserted string CLASS_MAP_BASE_DIR_VAR can be changed to whatever string you need with the option argument base_dir_var. For more details, see the 4th parameter section.

Interfaces and traits are also included.

Parameters

The class accepts four parameters.

1. (string) Base Directory Path

The first parameter accepts the base directory path.

This is required because scanned and gathered absolute paths are on the system where the script runs. However, the actual users of your programs do not share the same absolute paths depending on their systems. That's why the base directory path will be replaced with a constant or a variable in the output.

2. (string|array) Scan Directory Paths

The second parameter accepts directory paths to scan. For multiple paths, pass an numerically indexed array holding them.

Examples

3. (string) The output PHP file path.

Set a path that the generated list will be written.

4. Options (optional)

This parameter accepts an array holding options.

Generating a class map in the script directory.
Do not write to a file

Find CSS files

To find JavaScript files, change the 'css' part to 'js' in the allowed_extensions search argument.

Bundled Utility Autoloader

This package includes an autoloader.

Examples

Including an array of class list

Including the class map file that returns an array of class list

License

Licensed under MIT.


All versions of php-classmap-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.20
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 michaeluno/php-classmap-generator contains the following files

Loading the files please wait ....