Search code examples
laravelpackagist

Is it possible to use your own laravel package before registering it on Packagist?


I created a Laravel package (it is located in a private BitBucket repository) and I would like to test it in a new Laravel project if it works the way I want before registering it on Packagist. Is there any way to do that?


Solution

  • Yes, it is possible.

    You have to add information where to look for your source code to composer.json. For example you could add your own private repository.

    How to add private repository

    There are other possibilites, too. I suggest reading through the corresponding composer documentation