Laravel – Add / Modify a local Composer package


This is a quick demo of how to add a composer package to your project locally for use in Laravel.

I used this when I was extending an existing package.

Keeping things tidy

I keep all my local composer packages in a single directory


I pull the repo into its own directory within my packages folder

Add Repo and Dependencies to composer

Path: composer.json

"require": {
"socialiteproviders/cognito": "*",
"repositories": [{
"type": "path",
"url": "C:\_composer_packages\Providers\src\Cognito"

composer update

You should now see the package/modifications available in your Laravel vendor directory

successful execution message

Leave a Reply

Your email address will not be published. Required fields are marked *