Download the PHP package allapps2/shortcuts without Composer

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

shortcuts

Console tool to call sets of commands using short aliases - like a Makefile, but in PHP.

A distinctive feature is that it is configured entirely in PHP, which gives you code-completion, find usages, access to your application's constants, validation, and the whole range of PHP and IDE capabilities.

The downside is that the configuration is more verbose compared to YAML and other simple formats, but that's negligible compared to the benefits of integrating with the host application.

installation

requirements

download

download short.phar from https://github.com/allapps2/shortcuts/blob/main/bin/short.phar and put it into your project (for example into the .for-auto-completion folder, to be used by your IDE, like PhpStorm, for code auto-completion).

global install

to make the sc alias available everywhere:

sudo php short.phar install-global

or with a custom alias:

sudo php short.phar install-global <myalias>

usage

in a folder containing shortcuts.php:

sc [<shortcut> [<arguments>]]

arguments

arguments can be passed named, --name=value (or --name alone for bool flags), in any order:

sc shortcut2 --optionalArgument=value --requiredArgument=value

arguments can also be passed positionally, matching the order they're declared:

sc shortcut2 value1 value2

Named and positional arguments can be mixed; a named argument always takes precedence over a positional one for the same parameter. bool flags and array arguments must always be passed named, since a bare value would be ambiguous for them.

example of shortcuts.php:

for contributors

see CONTRIBUTING.md


All versions of shortcuts with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 allapps2/shortcuts contains the following files

Loading the files please wait ...