Download the PHP package tobento/service-picture without Composer

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

Picture Service

The Picture Service provides interfaces for creating and rendering a picture for PHP applications. It comes with a default implementation but you may create specific implementation to fit your requirements.

Table of Contents

Getting started

Add the latest version of the picture service project running this command.

Requirements

Highlights

Documentation

Picture Creator

The picture creator creates images based on the given Created Picture holding the images to be stored wherever you like.

Create Picture Creator

The picture creator uses the Imager Service to create images.

In Detail

Picture Creating

Create Picture From Stream

Use the method to create a picture from a PSR-7 stream:

Check out the Definition section to learn more about definitions.

You may check out the Picture section to learn more about the default implementation.

Create Picture From Resource

Use the method to create a picture from any resource implementing the interface:

Check out the Imager Service - Resource section to learn more about it.

Check out the Definition section to learn more about definitions.

You may check out the Picture section to learn more about the default implementation.

Supported Resources

Created Picture

The created picture holds all created images which you can use to store the images in the way you need it.

Check out the Encoded Response to learn more about it.

Definition

Array Definition

The array definition is the default picture definition.

Example with pixel density descriptors:

Picture Definition

Definitions

You may use the following definitions classes to add, filter and get definitions from.

Default Definitions

Json Files Definitions

The class loads definitions from JSON files within the given directories.

Example Directory:

Example Json Definition:

Stack Definitions

Picture

The picture class may be used to create, store or render the picture.

Srces

The method returns a Generator with all collected classes:

toTag

The method returns a new created picture tag.

Check out the Picture Tag section to learn more about the default .

jsonSerialize

The method serializes the object to a value that can be serialized natively by .

Img

Sources

Source

Srcset

Src

Picture Factory

The picture factory may be used to create a picture.

Create From Array

Use the method to create a picture from the given array:

Picture Tag Factory

The picture tag factory may be used to create picture tags.

Create From Picture

Use the method to create a picture tag from the given picture:

Picture Tag

The picture tag renders the picture html tag.

You may check out the Tag Service - Tag Interface section to learn more about the .

Render Picture

Null Picture Tag

The null picture tag does not render any content at all and may be useful in some sitations.

Credits


All versions of service-picture with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
tobento/service-imager Version ^1.0
tobento/service-dir Version ^1.0
tobento/service-filesystem Version ^1.0
tobento/service-tag Version ^1.0.5
league/mime-type-detection Version ^1.15
psr/log Version ^1.1 || ^2.0 || ^3.0
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 tobento/service-picture contains the following files

Loading the files please wait ....