PHPackages                             rentalmanager/photos - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rentalmanager/photos

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rentalmanager/photos
====================

Rental Manager Photos package which propels the basic system where you can manage properties for rent.

v2.0.0(7y ago)038proprietaryPHPPHP ^7.1.3

Since Jul 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rentalmanager/photos)[ Packagist](https://packagist.org/packages/rentalmanager/photos)[ Docs](https://github.com/rentalmanager/photos)[ RSS](/packages/rentalmanager-photos/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (14)Used By (0)

RentalManager - 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-configuration-and-usage)

### Installation

[](#installation)

Via Composer

```
composer require rentalmanager/photos
```

### Configuration

[](#configuration)

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

```
$ php artisan
```

There you should find the all `rm:*` commands.

First step after checking is to publish the vendors:

```
$ php artisan vendor:publish --tag="photos"
```

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

```
$ php artisan rm:setup-photos
```

Thats it...

Usage
-----

[](#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

[](#storing-the-photo)

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

```
$photo = new Photo([...]);
$photo->save();
```

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

```
$property->attachPhoto(1, 10);
```

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

```
$property->detachPhoto(1);

// or
$property->detachPhotos([1,2,3]);
```

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

```
$photos = $object->getOrderedPhotos();
```

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

```
$object->syncPhotos($photos);
```

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
------

[](#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

[](#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.

```
$url = 'https://media.equityapartments.com/images/c_crop,x_0,y_0,w_1920,h_1080/c_fill,w_1920,h_1080/q_80/4206-28/the-kelvin-apartments-exterior.jpg';

$photoElements = Photos::parseExternalPhoto($url);

dump( $photoElements);
```

Of course you can initiate the thumbnail generator as well

```
$photo = Photo::find(1);

$photo = Photos::generateThumbnails($photo);
```

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

```
$photo = Photos::upload($path_to_image);
```

Or if you want to upload and generate thumbnails automagically

```
$photo = Photos::upload($path_to_image, false, true); // the last param is thumbnail generator
```

Also you can provide your path like:

```
$photo = Photos::upload($path_to_image, 'store/there/instead');
```

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

```
$path = Photos::generatePath($id = false);
```

Thats it folks.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

13

Last Release

2802d ago

Major Versions

v1.1.71 → v2.0.02018-09-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc897661efd3f9b1d0b6cee6fa6eb2f5535819e0c2e0a0adab66b4d6002133be?d=identicon)[gorankrgovic](/maintainers/gorankrgovic)

---

Top Contributors

[![gorankrgovic](https://avatars.githubusercontent.com/u/12137730?v=4)](https://github.com/gorankrgovic "gorankrgovic (13 commits)")

---

Tags

photosRentbits

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rentalmanager-photos/health.svg)

```
[![Health](https://phpackages.com/badges/rentalmanager-photos/health.svg)](https://phpackages.com/packages/rentalmanager-photos)
```

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[helgesverre/extractor

AI-Powered Data Extraction for your Laravel application.

22128.0k](/packages/helgesverre-extractor)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
