twilio / starter-php

A starter app for PHP developers embarking on their first Twilio quest!
MIT License
20 stars 16 forks source link

PHP 8.0 Compatibility #4

Open jknight2660 opened 3 years ago

jknight2660 commented 3 years ago

Having issues with the PHP 8.0 compatibility...

Updated composer.json per https://blog.laravel.com/laravel-php-8-support

Get the following errors when running 'composer update':

C:\Users\Jonathan\Documents\GitHub\starter-php>composer update Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/lumen-framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.0.0) does not satisfy that requirement. - Root composer.json requires laravel/lumen-framework 5.8.* -> satisfiable by laravel/lumen-framework[v5.8.0, ..., 5.8.x-dev].

Thoughts?

Below is my updated composer.json file.


{ "name": "laravel/lumen", "description": "The Laravel Lumen Framework.", "keywords": ["framework", "laravel", "lumen"], "license": "MIT", "type": "project", "require": { "php": ">=8.0.0", "laravel/lumen-framework": "5.8.*", "twilio/sdk": "^5.34" }, "require-dev": { "fzaninotto/faker": "^1.9.1", "phpunit/phpunit": "^9.3", "mockery/mockery": "^1.0" }, "autoload": { "classmap": [ "database/seeds", "database/factories" ], "psr-4": { "App\": "app/" } }, "autoload-dev": { "classmap": [ "tests/" ] }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true }, "minimum-stability": "dev", "prefer-stable": true }

pfigz commented 3 years ago

I was getting the same issue, but when I ran composer install. I used the following, and it installed: composer install --ignore-platform-reqs Try adding the --ignore-platform-reqs suffix to your commands. I'm now having issues getting a response from the server though (500 status error)....