Download the PHP package locomotivemtl/charcoal-image without Composer

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

Charcoal Image

Build Status

Charcoal Image is a PHP image manipulation and processing library, providing a consistent API across different Image drivers. Currently supported drivers are Imagick (the PHP extension) and Imagemagick (using shell commands)

How to install

The preferred (and only supported) way of installing charcoal-image is with composer:

Dependencies

👉 Although this module was developped for Charcoal, there is absolutely no dependencies on any Charcoal modules and can therefore be used in any PHP project.

Why another PHP image libary?

Why not?. Charcoal-Image has been developped and used in in-house projects for almost 10 years. It has recently been rewritten to a more modern PHP style and released under an open-source license (MIT).

The main differences between existing PHP libraries like Imagine or Intervention are:

Usage

Typically, charcoal-image is used to load an image, perform operations (called effects such as blur, resize, watermark, etc.) and write the modified image.

With setData()

All effects can be added at once in a single array.

setData() is perfect for scenario where the effects are from a JSON configuration structure, for example.

With magic methods

All effects can also be used as methods on the image (using __call() magic).

Chainable version

Also shown: using the ImageFactory constructor method:

Available effects and operations are documented in the API Documentation.

Available image drivers

There are currently only 2 available drivers:

👉 Comming soon, the gd driver to use PHP builtin's image capacity.

How to select a driver

There are two different ways to instantiate an Image object for a specific driver.

Directly:

With the provided ImageFactory:

Development

To install the development environment:

To run the tests:

Coding Style

All Charcoal modules follow the same coding style and charcoal-image is no exception. For PHP:

Coding styles are enforced with grunt phpcs (PHP Code Sniffer). The actual ruleset can be found in phpcs.xml.

👉 To fix minor coding style problems, run grunt phpcbf (PHP Code Beautifier and Fixer). This tool uses the same ruleset as phpcs to automatically correct coding standard violations.

The main PHP structure follow the PSR-4 standard. Autoloading is therefore provided by Composer.

To ensure a clean code base, pre-commit git hooks should be installed on all development environments.

Continuous Integration

Unit Tests

Every class, method, and function should be covered by unit tests. PHP code can be tested with PHPUnit.

Authors

Changelog

0.3

Released 2016-03-11

0.2

Released 2015-09-15

0.1

Released 2015-08-26

TODOs


All versions of charcoal-image with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0 || >=7.0
locomotivemtl/charcoal-factory Version ^0.4
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 locomotivemtl/charcoal-image contains the following files

Loading the files please wait ....