Download the PHP package amirsahra/illustrator without Composer

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

illustrator

License

Introduction

Easy management of image addition and update

My most important concerns in working with images have been naming and determining where to store them. That's why I decided to develop this package so that any programmer who, like me, is tired of this naming and choosing the directory to save images, can use it and upload an image to the desired directory without additional work.

It also has the ability to update the target image, which means the target image is deleted and the new image is saved. so easily.

After installation, you can easily use illustrator only with the help of corrupting its facade.

Updating images is also very simple as above, and instead of the upload method, we use update with the parameter of the complete directory of the image that we want to update.

Disks

According to the capabilities of Laravel, we have two types of storage disks. public and local If we want to access an image with a URL (such as a user's image, banner, etc.), its disk must be public, and if we want an image that can only be downloaded securely (such as invoices, transaction lists, and any image that security is) its disk must be local.

Installation

WARNING

If this command did not publish any files, chances are, the Laratrust service provider hasn't been registered. Try clearing your configuration cache.

And

The Public Disk

To use the public disk according to the Laravel feature, you need to create a link.

To create the symbolic link, you may use the storage:link Artisan command:

Usage

For example, you have a model name MyImage with these fields

Let's start by config You edit the config file related to the package that is located in the config directory named illustrator with the publish command (which is explained in the installation section).

This is the default value, and if needed,

key value (default) Description
disk public You can choose the disk you want.
This is the default value, and if needed,
you can choose the desired disk when saving the image.
Supported Drivers: "local", "public"
image_path.dir illustrator/imgs Default directory to save images
image_path.random_string.length 10 If you want the name of the image to be created by default and include a random string, set this feature to active and set the string length.
image_path.random_string.is_active true You can enable and disable this feature.
image_path.prefix.value pre If you want the name of the image to be created by default and include a prefix, set this feature to active and set the prefix value.
image_path.prefix.is_active true You can enable and disable this feature.
image_path.postfix.value po If you want the name of the image to be created by default and include a postfix, set this feature to active and set the postfix value.
image_path.postfix.is_active true You can enable and disable this feature.

The input parameter of the method is of type UploadedFile and it is taken from the sent request that contains the image.

The return of this method is the full address of the image that you use to access the image. Note that the return of this method is saved as the address of the image in the database.

Consider this example :

In form

In class or controller method

Note: The name of the image must be without its type and its type is taken from the image file itself, for example, the name imageName.png is incorrect

If you want to access an image with its address, you must select the disk as public.

If you want the image to be protected and only downloadable, select local disk.

Imag access

With the address of the image (which is created when uploading) and the type of disk, the image can be accessed correctly.

If we want the image to be shown on the pages, its disk must be public, and by adding storage/ to the first of that address, the image will be displayed, as in the following example:

If we want the image to be protected and can only be downloaded, select its local disk.

To protected access the image at the address that the disk was local to when it was saved:

All methods can be used together, but the upload method must come last

In this way, the current image is deleted and the new image replaces it namespace App\Http\Controllers;

License

MIT


All versions of illustrator with dependencies

PHP Build Version
Package Version
No informations.
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 amirsahra/illustrator contains the following files

Loading the files please wait ....