vinkla / hashids

A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
https://hashids.org/php
MIT License
5.26k stars 417 forks source link

Laravel 10.x Compatibility #187

Closed laravel-shift closed 1 year ago

laravel-shift commented 1 year ago

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.

Before merging, you need to:

If you do find an issue, please report it by commenting on this PR to help improve future automation.

laravel-shift commented 1 year ago

:warning: Shift detected GitHub Actions which run jobs using a version matrix. Shift attempted to update your configuration for Laravel 10. However, you should review these changes to ensure the desired combination of versions are built for your package.

laravel-shift commented 1 year ago

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.

To do so, temporarily add Shift's fork to the repositories property of your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/hashids.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:

{
    "require": {
        "vinkla/hashids": "dev-l10-compatibility",
    }
}

Finally, run: composer update

vinkla commented 1 year ago

This is not the Laravel package.

jasonmccreary commented 1 year ago

Gotcha. I'll take it off Shift's list. Thanks.

vinkla commented 1 year ago

I know its confusing:

If you feel up for it, please submit a pull request to https://github.com/vinkla/laravel-hashids