Download the PHP package yourls/composer-installer without Composer

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

YOURLS Composer Installer Listed in Awesome YOURLS!

Keep track of plugins and custom packages added with Composer in a user/composer.json file that is left untouched when you update YOURLS.

In a nutshell: composer add-plugin joecool/super-yourls-plugin

:construction:   Work in progress.

Build Status Scrutinizer Code Quality Code Coverage Packagist

Foreword : install YOURLS with Composer

Installing YOURLS with Composer is already possible out of the box and doesn't need anything special. Just do :

(For instance composer create-project yourls/yourls . in an empty directory)

Note that this merely downloads the latest YOURLS release in the specified directory. You will need after this to properly install YOURLS (see yourls.org/#Install)

Install plugins

As a user you simply need to require the plugin in your user/composer.json.

Even easier, in the command line, just type:

This will download the plugin into user/plugins/superplugin , and transparently install any dependency in YOURLS' vendor directory.

This specific YOURLS plugin itself needs to be listed on Packagist. If it's not the case, nag your favorite plugin coder so they get it listed. Even better, open a simple Pull Request on their repository to help them doing so: see below.

:bulb: Try it yourself:

Make YOURLS plugins compatible

As a plugin coder, this is a simple 2 steps operation: add a composer.json and get your plugin listed on Packagist. That's it.

1. Add a composer.json to your plugin

First, your plugin must require PHP 7.2+

The composer.json tells everything Composer needs to know about your plugin. The important bits are "type": "yourls-plugin" and "require" this installer "yourls/composer-installer" as a dependency

A minimalist composer.json would be for example:

Of course, your plugin can completely leverage all Composer features and use any package: simply list them as additional dependencies:

In such case, additional dependencies for your plugin will be placed in YOURLS' includes/vendor

:bulb: Simple example:

See https://github.com/ozh/example-plugin/

2. Get listed on Packagist

This step is pretty straightforward, head to https://packagist.org/packages/submit and follow instructions.

If you are completely new to Composer, their about page is a recommended read.

Benefits

Making YOURLS plugins compatible with this Composer custom installer is easy and optimizes resources.

Credits

Much of this custom installer code comes from project Kirby . Thanks a bunch to them.

License

MIT. Do whatever the hell you want with this.


All versions of composer-installer with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^1.0
wikimedia/composer-merge-plugin Version ^1.4
symfony/thanks Version ^1.2
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 yourls/composer-installer contains the following files

Loading the files please wait ....