Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Alignment of the php module requirements #3614

Open
Rotzbua opened this issue Aug 8, 2022 · 0 comments
Open

Request: Alignment of the php module requirements #3614

Rotzbua opened this issue Aug 8, 2022 · 0 comments

Comments

@Rotzbua
Copy link
Contributor

Rotzbua commented Aug 8, 2022

Problem

It seems that the requirements for a "Grav" installation have changed over time and are no longer complete and the same for all sites.

I have so far listed all the jobs below and removed all the identical requirements so there are only the different requirements left.

Requirements

Main Grav repository

composer.json

        "ext-libxml": "*",
  "suggest": {
        "ext-iconv": "Recommended for better performance",
        "ext-zend-opcache": "Recommended for better performance",
        "ext-intl": "Recommended for multi-language sites",
        "ext-memcache": "Needed to support Memcache servers",
        "ext-memcached": "Needed to support Memcached servers",
        "ext-redis": "Needed to support Redis servers",
        "ext-exif": "Needed to use exif data from images."
    },

Grav learn page

https://learn.getgrav.org/17/basics/requirements#php-requirements

    ctype (used by symfony/yaml/Inline)
    gd (a graphics library used to manipulate images)
    session (used by toolbox)
    simplexml (used by grav/admin newsfeed)
    xml (XML support)

Optional Modules

    apcu for increased cache performance
    opcache for increased PHP performance
    yaml PECL Yaml provides native yaml processing and can dramatically increase performance
    xdebug useful for debugging in a development environment

grav-plugin-problems

From Grav-Admin -> Tools - Reports (https://github.com/getgrav/grav-plugin-problems)

ctype - PHP Ctype is successfully installed
gd - PHP GD (Image Manipulation Library) is successfully installed
xml - PHP XML Library is successfully installed

Currently no optional module checks.

Symfony

https://symfony.com/doc/4.4/setup.html#technical-requirements

  • Ctype
  • PCRE
  • Session
  • SimpleXML

Solution

I don't have the whole overview to know which ones should be added and which ones should be removed or are even completely out of date. So I just provide an example for simplexml:

  • Add check to grav-plugin-problems.
  • Add as requirement to composer.json

I hope the information helps. Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant