Support the ongoing development of →
Configuration Packages Architecture
Last updated 1 year ago.

I don't know how to do what you want. I never created a package before but I can show you a start point. Do you know Intervention/Image library? It's a popular image manipulation library/package and it has optional laravel support Optional means you can use it with composer in your project but also if you use laravel you can use with ServiceProvider.

This is from its composer.json file:

"require": {
        "php": ">=5.3.0",
        "ext-fileinfo": "*",
        "illuminate/support": "4.*",
        "illuminate/config": "4.*"

Time to read some code :)

Last updated 1 year ago.

@mgsmus Thx very much for this, the package gave me a clear example of how to solve my problem and managed to do so

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?

elimentz elimentz Joined 5 Mar 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.