Download the PHP package mathiasgrimm/glimpse-cli without Composer

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

Ship smaller images. Skip the toolchain.
Convert, optimize, resize, thumbnail and analyze images from your terminal.
The first-party CLI for glimpseimg.com, the image API for developers.

Latest Version on Packagist Tests Total Downloads PHP Version


Shipping images means wrangling ImageMagick, libvips, mozjpeg, cwebp and avifenc: compiled binaries that differ between your laptop, your teammate's laptop, and CI. glimpse replaces all of them with one command, with zero binary dependencies. The heavy lifting happens on the Glimpse API: stateless, nothing stored, your bytes never linger. Run it with cpx:

Image commands work with the built-in public token. Use glimpse auth or set GLIMPSE_TOKEN for higher limits. Account and usage commands require a personal token. Both workflow modes can run without GLIMPSE_TOKEN. Transform and info commands upload your image; analyze and check send image measurements.

Use glimpse analyze to estimate the output size for each format before converting. It sends image measurements without uploading your image:

Run glimpse with no arguments to see everything it can do:

Keep an original image

From your Git repository root, restore an image and skip it in future checks:

This restores the image from HEAD and records via: "skip" in the baseline. Use --from=COMMIT to restore from another commit. The original must exist in Git. If it does not, the command leaves the file unchanged. The image stays skipped until its contents change.

On an automatic optimization PR, open Files changed and add an inline comment on the image:

The workflow restores the original and updates the same PR. You need repository write access. See automatic optimization for setup and details.

Documentation

The full documentation lives at glimpseimg.com/docs/cli:

Adding glimpse to an existing project? Follow Add Glimpse to Your Project; it goes from install to a CI gate in about ten minutes.

This repository uses automatic image optimization: see .github/workflows/glimpse.yml.

Development

Releasing

This runs the test suite, compiles the PHAR, commits builds/glimpse, pushes, and creates the GitHub release with the binary attached, the equivalent of:

self-update discovers versions through Packagist and downloads the glimpse PHAR attached to the GitHub release of the matching tag, so the release must carry the binary as an asset under exactly that name. Committing the fresh build keeps composer global require working (composer's bin points at builds/glimpse) and lets pre-0.1.1 installs, which download builds/glimpse from the tag itself, still update.

The --build-version must be the tag name verbatim, including the v prefix. The updater compares the embedded build version against the Packagist tag as plain strings, so a build stamped 0.1.0 never equals the tag v0.1.0 and self-update would keep re-downloading the release it is already running.

License

glimpse-cli is open-source software licensed under the MIT license.


Image commands work without an account or a token of your own.
Visit glimpseimg.com for the docs and optional personal tokens.


All versions of glimpse-cli 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 mathiasgrimm/glimpse-cli contains the following files

Loading the files please wait ...