Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Update fuelphp with composer
  • Hello, i want update fuelphp 1.8 to 1.8.2 with composer but it doesn't work.
    Files are not updated.

    I tried :
    - php composer.phar update
    - php composer.phar update fuel/core


    My composer.json :

    {
        "name": "fuel/fuel",
        "type": "project",
        "description" : "FuelPHP is a simple, flexible, community driven PHP 5.3.3+ framework, based on the best ideas of other frameworks, with a fresh start!",
        "keywords": ["application", "website", "development", "framework", "PHP", "PHP7"],
        "license": "MIT",
        "require": {
            "php": ">=5.3.3",
            "composer/installers": "~1.0",
            "fuel/core": "1.8.*",
            "fuel/auth": "1.8.*",
            "fuel/email": "1.8.*",
            "fuel/oil": "1.8.*",
            "fuel/orm": "1.8.*",
            "fuel/parser": "1.8.*",
            "fuelphp/upload": "2.0.6",
            "monolog/monolog": "1.5.*",
            "phpseclib/phpseclib": "2.0.0",
            "michelf/php-markdown": "1.4.0",
            "twig/twig": "2.0",
            "asm89/twig-cache-extension": "^1.3",
            "doctrine/cache": "^1.7"
        },
        "require-dev": {
            "fuel/docs": "1.8.*"
        },
        "suggest": {
            "dwoo/dwoo" : "Allow Dwoo templating with the Parser package",
            "mustache/mustache": "Allow Mustache templating with the Parser package",
            "smarty/smarty": "Allow Smarty templating with the Parser package",
            "twig/twig": "Allow Twig templating with the Parser package",
            "pyrocms/lex": "Allow Lex templating with the Parser package",
            "mthaml/mthaml": "Allow Haml templating with Twig supports with the Parser package",
            "zordius/lightncandy": "Allow Handlebars templating with an extremely fast PHP implementation of handlebars"
        },
        "config": {
            "vendor-dir": "fuel/vendor"
        },
        "extra": {
            "installer-paths": {
                "fuel/{$name}": ["fuel/core"],
                "{$name}": ["fuel/docs"]
            }
        },
        "scripts": {
            "post-install-cmd": [
                "php oil r install"
            ]
        },
        "minimum-stability": "stable"
    }

    Thanks for your help
    Brice

  • When I use the standard json to create a new installation, it installs:

    Package operations: 15 installs, 0 updates, 0 removals
      - Installing composer/installers (v1.6.0): Downloading (100%)        
      - Installing fuelphp/upload (2.0.6): Downloading (100%)        
      - Installing michelf/php-markdown (1.7.0): Downloading (100%)        
      - Installing psr/log (1.1.0): Downloading (100%)        
      - Installing monolog/monolog (1.24.0): Downloading (100%)        
      - Installing paragonie/random_compat (v9.99.99): Downloading (100%)        
      - Installing paragonie/sodium_compat (v1.9.1): Downloading (100%)        
      - Installing phpseclib/phpseclib (2.0.15): Downloading (100%)        
      - Installing fuel/core (1.8.1.6): Downloading (100%)        
      - Installing fuel/auth (1.8.1): Downloading (100%)        
      - Installing fuel/email (1.8.1): Downloading (100%)        
      - Installing fuel/oil (1.8.1.1): Downloading (100%)        
      - Installing fuel/orm (1.8.1.2): Downloading (100%)        
      - Installing fuel/parser (1.8.1): Downloading (100%)        
      - Installing fuel/docs (1.8.1): Downloading (100%)    

    No idea why for now, when I check packagist, 1.8.2. is available: https://packagist.org/packages/fuel/core#1.8.2
  • According to the composer docs, "1.8.*" means ">=1.8 <1.9", which should include 1.8.2.
  • So, for now we can't upgrade fuelphp 1.8 to 1.8.2 with composer.
  • Well, you should, but I won't know how, not a Composer expert I'm afraid.

    To test, I copied the composer.json from 1.8-master, and changed it to explicitly install 1.8.0:

    [wanwizard@catwoman] $ composer install
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 9 installs, 0 updates, 0 removals
      - Installing composer/installers (v1.7.0): Loading from cache
      - Installing fuel/core (1.8.0): Downloading (100%)        
      - Installing fuel/auth (1.8.0): Downloading (100%)        
      - Installing fuel/email (1.8.0): Downloading (100%)        
      - Installing fuel/oil (1.8.0): Downloading (100%)        
      - Installing fuel/orm (1.8.0): Downloading (100%)        
      - Installing fuel/parser (1.8.0): Downloading (100%)        
      - Installing fuelphp/upload (2.0.6): Loading from cache
      - Installing fuel/docs (1.8.0): Downloading (100%)        
    Writing lock file
    Generating autoload files

    Then I changed it back to 1.8.* and ran an update:

    [wanwizard@catwoman] $ composer update
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 6 installs, 7 updates, 0 removals
      - Installing michelf/php-markdown (1.7.0): Loading from cache
      - Installing psr/log (1.1.2): Loading from cache
      - Installing monolog/monolog (1.25.3): Loading from cache
      - Installing paragonie/random_compat (v9.99.99): Loading from cache
      - Installing paragonie/sodium_compat (v1.12.2): Loading from cache
      - Installing phpseclib/phpseclib (2.0.23): Loading from cache
      - Updating fuel/core (1.8.0 => 1.8.2): Loading from cache
      - Updating fuel/auth (1.8.0 => 1.8.2): Loading from cache
      - Updating fuel/email (1.8.0 => 1.8.2): Loading from cache
      - Updating fuel/oil (1.8.0 => 1.8.2): Loading from cache
      - Updating fuel/orm (1.8.0 => 1.8.2): Loading from cache
      - Updating fuel/parser (1.8.0 => 1.8.2): Loading from cache
      - Updating fuel/docs (1.8.0 => 1.8.2): Loading from cache

    which updates to 1.8.2 just fine, which suggests either an issue in your composer.json or composer.lock.

    This is what I tested with:

    {
        "name": "fuel/fuel",
        "type": "project",
        "description" : "FuelPHP is a simple, flexible, community driven PHP 5.4+ framework, based on the best ideas of other frameworks, with a fresh start!",
        "keywords": ["application", "website", "development", "framework", "PHP", "PHP7"],
        "license": "MIT",
        "require": {
            "php": ">=5.4",
            "composer/installers": "~1.0",
            "fuel/core": "1.8.*",
            "fuel/auth": "1.8.*",
            "fuel/email": "1.8.*",
            "fuel/oil": "1.8.*",
            "fuel/orm": "1.8.*",
            "fuel/parser": "1.8.*",
            "fuelphp/upload": "2.0.6"
        },
        "require-dev": {
            "fuel/docs": "1.8.*"
        },
        "suggest": {
            "dwoo/dwoo" : "Allow Dwoo templating with the Parser package",
            "mustache/mustache": "Allow Mustache templating with the Parser package",
            "smarty/smarty": "Allow Smarty templating with the Parser package",
            "twig/twig": "Allow Twig templating with the Parser package",
            "pyrocms/lex": "Allow Lex templating with the Parser package",
            "mthaml/mthaml": "Allow Haml templating with Twig supports with the Parser package",
            "zordius/lightncandy": "Allow Handlebars templating with an extremely fast PHP implementation of handlebars"
        },
        "config": {
            "vendor-dir": "fuel/vendor"
        },
        "extra": {
            "installer-paths": {
                "fuel/{$name}": ["fuel/core"],
                "{$name}": ["fuel/docs"]
            }
        },
        "scripts": {
            "post-install-cmd": [
                "php oil r install"
            ]
        },
        "minimum-stability": "stable"
    }

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion