Support the ongoing development of Laravel.io →
Configuration Packages Architecture
Last updated 2 years ago.
0

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 2 years ago.
0

@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 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

elimentz elimentz Joined 5 Mar 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.