varsitynewsnetwork / wordpress-rest-api-client

A Wordpress API client for PHP
77 stars 63 forks source link

Package doesn't work on PHP 8 #44

Open NazimNasser opened 7 months ago

NazimNasser commented 7 months ago
$ composer require vnn/wordpress-rest-api-client
Cannot use vnn/wordpress-rest-api-client's latest version 1.3.0 as it requires php ^7.0 which is not satisfied by your platform.

In PackageDiscoveryTrait.php line 313:

  Package vnn/wordpress-rest-api-client has requirements incompatible with your PHP version, PHP extensions and Composer version:  
    - vnn/wordpress-rest-api-client 1.3.0 requires php ^7.0 which does not match your installed version 8.1.6.
Bekcomp commented 5 months ago

Not Ideal, but I changed the lock file to "require": { "php": "^7.3||^8.0", "psr/http-message": "^1.0" },

Aldo-f commented 1 month ago

Or install it using this command

composer require vnn/wordpress-rest-api-client dev-master  --ignore-platform-reqs  --with-all-dependencies

Why?