PHPackages                             devnas/imgresize - 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. [Image &amp; Media](/categories/media)
4. /
5. devnas/imgresize

ActiveLibrary[Image &amp; Media](/categories/media)

devnas/imgresize
================

img resize storage laravel

00PHP

Since Nov 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Maritho/imgresize)[ Packagist](https://packagist.org/packages/devnas/imgresize)[ RSS](/packages/devnas-imgresize/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

How to create and publish a Laravel package on packagist
========================================================

[](#how-to-create-and-publish-a-laravel-package-on-packagist)

A Laravel package is a set of reusable classes created to add extra functionality to a Laravel website. In clearer terms, a package is to Laravel, what plugins are to WordPress. The primary goal of Laravel packages is to reduce development time by making reusable features into a set of standalone classes that can be used within any Laravel project.

[View tutorial](https://pusher.com/tutorials/publish-laravel-packagist)

Getting Started
---------------

[](#getting-started)

- Create a fresh laravel package

```
composer create-project --prefer-dist laravel/laravel packagetestapp

```

- change directory to the new folder

```
cd packagetestapp

```

- When it's done you need to configure your env file and set your app key and other necessary details. In your terminal type:

```
cp .env.example .env

```

- generate the app key

```
php artisan key:generate

```

- create a folder called `packages`, then create a new folder called samuelayo.

> Note that you can subtitute samuelayo with your own vendor name. Be sure to change the refrence in every other aspect of the app

- clone this repository to the newly created folder

```
git clone https://github.com/samuelayo/contact-form-package.git packages/samuelayo/contactform

```

- Tell Laravel how to load our package and use it's functions, so inside the root of your Laravel app in the composer.json add this code:

```

"autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "Samuelayo\\Contactform\\": "packages/samuelayo/contactform/src",
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Samuelayo\\Contactform\\": "packages/samuelayo/contactform/src",
            "Tests\\": "tests/"
        }
    },

```

- Dump the composer autoloader

```
composer dump-autoload

```

- Next, we need to add our new Service Provider in our `config/app.php` inside the `providers` array:

```
'providers' => [
         ...,
            App\Providers\RouteServiceProvider::class,
            // Our new package class
            Samuelayo\Contactform\ContactFormServiceProvider::class,
        ],

```

- Migrate the database tables

```
php artisan migrate

```

And finally, start the application by running:

```
php artisan serve

```

Visit  in your browser to view the demo.

If you want to include the project as a package to your app, run:

```
composer require samuelayo/contactform

```

Built With
----------

[](#built-with)

- [Laravel](https://laravel.com/) - The PHP framework for web artisans.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/devnas-imgresize/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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