Download the PHP package legiaifenix/arcadia without Composer

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

Arcadia

Created By: Legiai Fenix Started At: 03/02/2017

Description:

Arcadia aims to provide a quick image parsing and uploading solution. The idea is to just pass the file and have everything done for you Please note that this package is under development and aims to help the production of developers so they can focus on other aspects of their projects.

Introduction to the package name: Arcadia was a greek land that became an imaginary country with time by the hand of many poets and artists. Within Arcadia, reigns happiness, simplicity and beauty. Since the package aims to provide a simple and clean way to manage the images that are sent by clients we though the name was just on spot. We aim to provide simple and clean solutions to real problems, leaving the developers happy.

Functionalities

Usage

First we are going to need to create a factory that will manage all our functionalities.

This factory will require you to already provide the path you wish to store your images. If not provided it will use default as public and uploads. It is inspired in the Laravel folder structure where images are sent to the path /public/

If you provide the first arguments it will keep your folder structure to store the images:

We can also specify a limit for the images upload at the end of the variables when creating the factory object. If nothing is specified it will limit to 2MB. In this example we are allowing 50MB. Of course, always make sure your php.ini accepts your variables.

It all starts from somewhere

Arcadia will instanciate a model through the factory initiation. You can access such object to ask it to do the functionalities you desire, by just asking for it via factory:

Uploading an image

We can start uploading an image by passing the field parameter through our factory:

If no path is specified when uploading it will follow a WP structure inside the target folder specified when constructing the factory. But if you wish to specify a different folder you can pass a path into it. What it will do is check the root folder and check if the specified new one exists (will create if don't). Then uploads the file.

Where img field exists as html file input:

List images from a specific folder

Because we wanted to allow you to list any folder you wish, you are able to specify the amount you wish to load (future development will allow image pagination), from where you wish to list and what type.

Example of listing all svgs from uploads/2017/02:

Example of listing the first 5 jpgs from uploads/2017/02:

Example of returned array:

Deleting images from a folder

Just pass the path for the image with the image name, the program will delete it from there if it sees it exists. It only allows you to delete images from a folder as it checks if it is an image. Acceptable types are:

You can also delete all images from a folder by using the list function in a for loop with the delete:

Or even just delete .gifs from a folder:


All versions of arcadia 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 legiaifenix/arcadia contains the following files

Loading the files please wait ....