Giter Club home page Giter Club logo

Comments (3)

tflight avatar tflight commented on May 27, 2024

Twig 2.x requires PHP 7+, but this component doesn't. If you don't have a platform defined in the composer.json for your project, composer will install the version applicable to the PHP version composer is running under. Thus, if composer is running under PHP version 5, you will get Twig version 1.x. If composer is running under PHP 7+, you will get Twig version 2.x.

If you wish to force something different, for example if composer is run under PHP 5 and you want to build for PHP7+, then you can tell that to composer through your platform-config in composer.json.

    "config": {
        "platform": {
            "php": "7.0.18"
        }
    },

from twig-view.

AlexNodex avatar AlexNodex commented on May 27, 2024

Makes sense, thanks a lot

from twig-view.

akrabat avatar akrabat commented on May 27, 2024

Free free to PR an update to the README :)

from twig-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.