adminarchitect / core

AdminArchitect - Active Admin for Laravel
http://adminarchitect.com
MIT License
209 stars 66 forks source link

Versioning issues when installing Admin Architect #88

Open zerossB opened 2 years ago

zerossB commented 2 years ago

Hi! I'm trying to install this project to start testing it, but I'm having difficulties, here is my development stack and the package installation error log.

PHP: 8.1.2 Composer: 2.2.5 2022-01-21 17:25:52 Laravel: 8.83.0

Installation error log

$ composer require adminarchitect/core
Using version ^1.6 for adminarchitect/core
./composer.json has been updated
Running composer update adminarchitect/core
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - adminarchitect/core[v1.6, ..., 1.6.x-dev] require laravelcollective/html 5.*|dev-master -> satisfiable by laravelcollective/html[dev-master, v5.0.0, ..., 5.8.x-dev].
    - laravelcollective/html dev-master requires illuminate/http ^6.0|^7.0 -> found illuminate/http[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.0.0, ..., 5.0.x-dev] require illuminate/http ~5.0 -> found illuminate/http[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html v5.0.5 requires illuminate/http ~5.1 -> found illuminate/http[v5.1.1, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.1.0, ..., 5.1.x-dev] require illuminate/http 5.1.* -> found illuminate/http[v5.1.1, ..., 5.1.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.2, ..., 5.2.x-dev] require illuminate/http 5.2.* -> found illuminate/http[v5.2.0, ..., 5.2.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.3.0, ..., 5.3.x-dev] require illuminate/http 5.3.* -> found illuminate/http[v5.3.0, ..., 5.3.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.4, ..., 5.4.x-dev] require illuminate/http 5.4.* -> found illuminate/http[v5.4.0, ..., 5.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.5, ..., 5.5.x-dev] require illuminate/http 5.5.* -> found illuminate/http[v5.5.0, ..., 5.5.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.5.2, ..., 5.6.x-dev] require illuminate/http 5.6.* -> found illuminate/http[v5.6.0, ..., 5.6.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.7, ..., 5.7.x-dev] require illuminate/http 5.7.* -> found illuminate/http[v5.7.0, ..., 5.7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.8.0, ..., 5.8.x-dev] require illuminate/http 5.8.* -> found illuminate/http[v5.8.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires adminarchitect/core ^1.6 -> satisfiable by adminarchitect/core[v1.6, ..., 1.6.x-dev].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require adminarchitect/core:*" to figure out if any version is installable, or "composer require adminarchitect/core:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
zerossB commented 2 years ago

And if I install the latest version that is in the packagist it doesn't accept it because of the php version.

Isn't it time to accept php version 8.0?

$ composer require adminarchitect/core:2.3.0

  [InvalidArgumentException]
  Package adminarchitect/core at version 2.3.0 has requirements incompatible with your PHP version, PHP extensions and Composer version:
    - adminarchitect/core v2.3.0 requires php ^7.2 which does not match your installed version 8.1.2.

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...
webplusmultimedia commented 2 years ago

Hi there, You need to upgrade the composer.json required like that "require": { "php": "^7.4|^8.0|^8.1", "ext-json": "*", "ext-dom": "*", "laravelcollective/html": "^5.0|^6.0|^7.0|dev-master", "doctrine/dbal": "2.9.*|^3.3", "doctrine/annotations": "^1.6", "terranet/menus": "^2.2", "terranet/presentable": "^1.0", "terranet/localizer": "^1.0", "zendframework/zend-code": "2.*|3.*", "spatie/once": "^3.1.0", "diglactic/laravel-breadcrumbs": "^6.1|^7.2", "terranet/translatable": "^1.2" },

I use that on my Adminarchitect 4.0 laravel 9 (trying to push some tailwindcss + livewire + alpine on it)