XAMPP on a mac to use composer to install a pear package... what to do with this error?

tried in XAMPP on a mac to use composer to install a pear package… what to do with this error?

leonidass-mbp:website3 yyyy$ composer install
Loading composer repositories with package information
Initializing PEAR repository http://pear2.php.net
PEAR repository from http://pear2.php.net could not be loaded. Your configuration does not allow connections to http://pear2.php.net/channel.xml. See https://getcomposer.org/doc/06-config.md#secure-http for details.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package pear-pear2.php.net/pear2_text_markdown could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
leonidass-mbp:website3 yyy$ composer install
Loading composer repositories with package information
Initializing PEAR repository https://pear2.php.net
PEAR repository from https://pear2.php.net could not be loaded. Your configuration does not allow connections to http://pear2.php.net/rest/c/categories.xml. See https://getcomposer.org/doc/06-config.md#secure-http for details.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package pear-pear2.php.net/pear2_text_markdown could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
leonidass-mbp:website3 yyyy$ 


composer.json
{
    "name": "yyy/website",
    "description": "Our WebSite",
    "type": "library",
    "repositories":[
        {
            "type": "pear",
            "url": "http://pear2.php.net"
        }
    ],
    "require": {
        "slim/slim": "1.6.x",
        "pear-pear2.php.net/PEAR2_Text_Markdown": "*"
    },
    "license": "MIT",
    "authors": [
        {
            "name": "yyy",
            "email": "yyy@gmail.com"
        }
    ]
}

Judging from that error, pear-pear2.php.net/PEAR2_Text_Markdown doesn’t exist.

I believe you should be using pear/Text_Markdown as your require package

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.