Skip to content
Advertisement

Tag: package

Why this Simple case of psr-4 not working with composer

I am trying to understand how psr-4 works using composer. These are the contents of my composer.json file The Folder Structure is given below (please note I am using windows 10, so directory name casing should not matter I think) The folder where I have created ‘vendor’ folder is inside D:tempcomposer_test Contents of test.php Contents of Tire.php But when I

Failed while installing a package using composer

iam tryin to use a cart package by using this command composer require jason-napolitano/codeigniter4-cart-module and it’s failed. this is what it said is it because my minimum-stability in composer.json is set to “stable”? Answer I presume you created your project by using composer create-project codeigniter4/framework. This effectively created a clean project for you without the .git folder, thus removing any

new laravel package not recognized

I was writing my first laravel package, so I could use it and understand how packages work and learn how to write packages and etc. But my project didn’t recognize the package that I wrote. Here is my package Github link: https://github.com/IIIphr/Shamsi_Calendar And this is my main project: https://github.com/IIIphr/aimeos_shamsi I use this command to add my package to the app:

Create custom package with facade in Laravel 8

I am trying to develop a new Laravel package locally installed via Composer. These are my steps: I install a new Laravel application with composer create-project laravel/laravel my-application I create a new directory in the root with the following content: packages/randolf/custom-package/composer.json packages/randolf/custom-package/src/CustomPackage.php packages/randolf/custom-package/src/CustomPackageServiceProvider.php packages/randolf/custom-package/src/Facades/CustomPackageFacade.php I add my package in Laravel with composer, adding the repositories key: /composer.json I run composer

Publishing config and migrations from included package in Laravel

I’m using Laravel to build a package which will include some Admin functionality and will include some other packages. I have included a package which has migrations and a config file, But how do I copy those to the correct folder in Laravel. The package has it’s own ServiceProvider but How do I call that from my package? I’m using

Advertisement