renatomarinho / laravel-page-speed

Package to optimize your site automatically which results in a 35%+ optimization
MIT License
2.4k stars 275 forks source link

install with laravel 10 #182

Open ali635 opened 1 year ago

ali635 commented 1 year ago

Problem 1 **- Root composer.json requires renatomarinho/laravel-page-speed ^2.1 -> satisfiable by renatomarinho/laravel-page-speed[2.1.0].

AyushMahatara commented 1 year ago

"require": { "php": "^8.0", "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" }, "require-dev": { "phpunit/phpunit": "^8.5 || ^9.0|| ^10.0", "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0|| ^8.0", "squizlabs/php_codesniffer": "^3.6 || ^3.7", "mockery/mockery": "^1.4" },

vendor/renatomarinho folder remove this package first and run command

composer update

may be this will help

ali635 commented 1 year ago

"require": { "php": "^8.0", "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" }, "require-dev": { "phpunit/phpunit": "^8.5 || ^9.0|| ^10.0", "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0|| ^8.0", "squizlabs/php_codesniffer": "^3.6 || ^3.7", "mockery/mockery": "^1.4" },

vendor/renatomarinho folder remove this package first and run command

composer update

may be this will help

i try this solution but problem still existing

madushancs commented 11 months ago

Find any solution?

ali635 commented 11 months ago

Find any solution? no

washonrails commented 11 months ago

Hi @madushancs , @ali635 I had the same problem, I use laravel 10.x and I had to install the package using "dev-master" as the branch, here is how I did it: It's the same configuration process, you just change the project branch

php composer require renatomarinho/laravel-page-speed dev-master

Captura de tela de 2023-10-07 17-49-48

proofs that it worked ! :

Normal site/aplication without using laravel-page-speed: Captura de tela de 2023-10-07 17-54-25

Source code of my site/aplication in laravel 10.x using laravel-page-speed : Captura de tela de 2023-10-07 17-54-35

Here is my metrics in lighthouse console tool: Captura de tela de 2023-10-07 17-22-53

Don't ask me how I know this, it was a lot of time researching on forums, debating about it, and a lot of debugging, even today I don't know how I discovered it haha

So if this helped you in any way, I humbly ask you to close the issue and tag Renato (project developer) so he can see this and put it in the readme or even fix this...... bug? , in short, so that we can help more people who need this package. hugs

junsgo commented 8 months ago

Hi @madushancs , @ali635 I had the same problem, I use laravel 10.x and I had to install the package using "dev-master" as the branch, here is how I did it: It's the same configuration process, you just change the project branch

php composer require renatomarinho/laravel-page-speed dev-master

Captura de tela de 2023-10-07 17-49-48

proofs that it worked ! :

Normal site/aplication without using laravel-page-speed: Captura de tela de 2023-10-07 17-54-25

Source code of my site/aplication in laravel 10.x using laravel-page-speed : Captura de tela de 2023-10-07 17-54-35

Here is my metrics in lighthouse console tool: Captura de tela de 2023-10-07 17-22-53

Don't ask me how I know this, it was a lot of time researching on forums, debating about it, and a lot of debugging, even today I don't know how I discovered it haha

So if this helped you in any way, I humbly ask you to close the issue and tag Renato (project developer) so he can see this and put it in the readme or even fix this...... bug? , in short, so that we can help more people who need this package. hugs

good

Rikj000 commented 6 months ago

I use laravel 10.x and I had to install the package using "dev-master" as the branch, here is how I did it: It's the same configuration process, you just change the project branch

php composer require renatomarinho/laravel-page-speed dev-master

@renatomarinho, I can confirm that dev-master works correctly on Laravel 10, can we get a version bump with these changes so we don't have to rely on referencing a non-static master branch?

This will also stop the duplicate issues and PRs from flowing in.

Linked (duplicate) issues:

Linked (duplicate) PRs: