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 :)
@mgsmus Thx very much for this, the package gave me a clear example of how to solve my problem and managed to do so
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community