Download the PHP package rentalmanager/photos without Composer

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

RentalManager - PHOTOS

A package made for Rentbits for easier maintenance and modularity of managing rental listings. It includes all migrations, models and relations to run the rental system.

This package uses Image Intervention library and league flysystem packages for Rackspace, SFTP and AWS access. So you do not need to install them on your app directly.

Installation, Configuration and Usage

Installation

Via Composer

Configuration

Once you install the package, it should be automatically discovered by the Laravel. To check this, in your terminal simply run the:

There you should find the all rm:* commands.

First step after checking is to publish the vendors:

You can setup the thumbnail sizes, default disk etc in the config file.

After that it depends on you. If you are a hard learner, run through each commands manually, but then you can just simply run the

Thats it...

Usage

This package is used to store the photos in a separate table. It adds the trait to the property and unit to bind the relation as well.

Storing the photo

You can store the photo in usual way, using Eloquent ORM.

When you store the photo with usual way you can associate the property like this

Where the first param is the ID of the photo, and the second is the ORDERING number.

or you can easily detach the photo(s) of the property

Because we added the Trait to the Property and Unit model, you can fetch the photos object via

The above method will return the photos by the order you gave them.

To sync the photos you will need to use the following method

The $photos is the array of photo ID's. Please note that the order of id's will eventually be used for ordering. Which generally means if you provide an array [1,3,10,2] - photos will be displayed in this order.

Facade

This package provides great methods for easy photo manipulation.

(First of you need to use the Facade as )

use RentalManager\Photos\Facades\Photos;

in your class.

You can utilize the following methods

Automatic image path recovery

If you are storing the external image, you'll need to get a info for storing the path and whatever. Luckily this package provides an easy wrapper to do exactly this.

Of course you can initiate the thumbnail generator as well

Or if you just want to store the original image to the Storage and deal with thumbnails later on:

Or if you want to upload and generate thumbnails automagically

Also you can provide your path like:

Or you can generate the auto path env/properties/{random}

Thats it folks.


All versions of photos with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
kkszymanowski/traitor Version ^0.2.0
intervention/image Version ^2.4
league/flysystem-aws-s3-v3 Version ^1.0
league/flysystem-cached-adapter Version ^1.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 rentalmanager/photos contains the following files

Loading the files please wait ....