Download the PHP package itsahappymedium/gpm without Composer

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

Git Package Manager

packagist package version packagist package downloads

A PHP Command Line tool that makes it easy to download dependencies from GitHub.

Use-Case

When building a site in PHP, the two main options to downloading and installing front-end frameworks is to either use NPM/Yarn/Bower (Which require Node), or take the source of the framework and include it in the project manually (and committing that code to your repo). The goal with this tool is to eliminate the need for Node as well as having to commit the framework's code to your project's repo.

Installation

To a package (local)

To your system (global)

Usage

GPM will read a list of dependencies from a gpm.json file that is structured like so:

Package names are <github_username>/<repo_name>. So if you wanted to install https://github.com/kraaden/autocomplete, the package name would be kraaden/autocomplete.

Package versions can be a tag name, dev-<branch>, #<commit_sha>, or a URL (Zip files will be extracted). If a package version isn't found using the version/tag specified, it will try again with a v prepended (For example, if 1.3.1 doesn't exist, it will also try v1.3.1).

gpm install [--save/-s] [--path/-p <path>] [--install-path/-i <path>] [package]

If the package argument is passed, it will simply download and extract that package (also saving it to gpm.json if the --save or -s option is set), otherwise if no arguments are passed, all packages currently defined in gpm.json will be downloaded and extracted.

Set the --path or -p option to define a path to where the gpm.json file is located (Defaults to the current directory).

Set the --install-path or -i option to define a path to download and extract packages to (Defaults to gpm_modules in the current directory).

Set the --ignore-errors or -c option to ignore any errors that occur and continues with installing the rest of the packages.

Set the --ext or -e option to define file extensions to extract from archives otherwise all files will be extracted (Separate multiple extensions with a comma).

gpm uninstall [--save/-s] [--path/-p <path>] [--install-path/-i <path>] <package>

Deletes a package from the gpm_modules directory (or whatever directory the --install-path or -i option is set to) (also removing it from gpm.json if the --save or -s option is set).

gpm versions <package>

Lists the versions available for the package passed to the package argument.

gpm init [--path/-p <path>]

Generates a gpm.json file in the current directory (or whatever directory the --path or -p option is set to).

gpm help

Displays information on how to use GPM.

Defining Settings with JSON

You can set the install-path and/or ext options by defining them in your JSON file like so:

Both install-path and ext settings accept a string or an array of strings. The install-path defined here is relative to the JSON file.

Related

License

MIT. See the license.md file for more info.


All versions of gpm with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
splitbrain/php-archive Version ^1.2
splitbrain/php-cli Version ^1.1
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 itsahappymedium/gpm contains the following files

Loading the files please wait ....