mondago / laravel-azure-application-insights

Enable Azure Application Insights in your Laravel project
MIT License
5 stars 6 forks source link

Package could not be found in any version #10

Closed CharlieHorton closed 1 year ago

CharlieHorton commented 1 year ago

Hi, trying to isntall this in a Laravel 8 project, I have updated the composer.json with the custom repository and added the dependency to the require section. After running composer udpate I get the following output:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mondago/laravel-application-insights ^0.5.0 -> satisfiable by mondago/laravel-application-insights[0.5.0, 0.5.1].
    - mondago/laravel-application-insights[0.5.0, ..., 0.5.1] require mondago/application-insights ^0.5.1 -> could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
ingalless commented 1 year ago

Hey @CharlieHorton! Sorry for the delay in replying.

Our documentation here isn't the greatest - sorry! The fix is simple. You need to add the repositories to the composer.json.

If you'd like to contribute to the README that would be amazing!

"repositories": [
        {
            "type": "git",
            "url": "https://github.com/mondago/laravel-azure-application-insights"
        },
        {
            "type": "git",
            "url": "https://github.com/mondago/ApplicationInsights-PHP"
        }
]

Let me know how you get on :)

CharlieHorton commented 1 year ago

That worked, thanks for your response!