Download the PHP package jameshalsall/licenser without Composer

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

PHP Licenser

Automates the prepending of a license header doc block to your directory(ies) of source files.

Currently still in development, but will:

Usage

  1. Add "jameshalsall/licenser":"dev-master" to your composer.json require-dev
  2. Run composer update
  3. Run ./bin/licenser run /path/to/source/files /path/to/license/file to process source files

Using a built-in license type

Licenser supports the following built-in licenses:

To use one of these built-in licenses you just replace the path to your custom licenses file with the name of the built-in license instead. For example if you wanted to use the MIT license then you would run something like:

./bin/licenser run /path/to/files mit --owners="[email protected] [email protected]"

Value replacement in built-in licenses

When using a built-in license the Licenser will replace special placeholders with custom values. The following twig placeholder values are used:

Replacing an existing license

You can tell the Licenser to replace an existing license header with a new one by using the --replace-existing option when running the command. This will tell Licenser to remove any existing licenses and replace them with the new one generated.

Checking files for correct license

Licenser also allows you to check your source files for correct license information. It will warn you if there are any source files that do not have a license header that matches the options you provide.

./bin/licenser check /path/to/files mit [email protected]

Caution

It is recommended that you have your source files under version control when running the tool as it is still experimental and very much in development.

Roadmap

Bug Reporting

If you find any problems with the library then open an issue with a description of the problem and I will aim to resolve it.


All versions of licenser with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ~2.8|~3.0
symfony/finder Version ~2.8|~3.0
pimple/pimple Version ~3.0
twig/twig Version ~1.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 jameshalsall/licenser contains the following files

Loading the files please wait ....