Laravel Production issue - Updating composer with Laravel 4.1.x - php

I haven't encountered any issue in deploying my laravel project until now. I've been deploying for like almost a year already for this project. But some new bug came up.
First of all.
I can't run composer update, cause it says this error.
composer update
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Updating dependencies (including require-dev)
[RuntimeException]
Could not load package classpreloader/classpreloader in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ^1.2.2: Invalid
version string "^1.2.2"
[UnexpectedValueException]
Could not parse version constraint ^1.2.2: Invalid version string "^1.2.2"
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
So what I did is update my Composer library.
This is my current version.
Composer version 1e27ff5e22df81e3cd0cd36e5fdd4a3c5a031f4a 2014-08-11 15:46:48
I updated composer.
[api#my staging-hoho-middleware]$ sudo composer self-update^C
[api#my staging-hoho-middleware]$ sudo /usr/local/bin/composer self-update
Updating to version b2173d28fc8b56236eddc8aa10dcda61471633ec.
Downloading: 100%
Use composer self-update --rollback to return to version 1e27ff5e22df81e3cd0cd36e5fdd4a3c5a031f4a
[api#my staging-hoho-middleware]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
But I encounter a new problem once I ran composer update
[api#my staging-hoho-middleware]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 4.7.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.7.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.7.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.7.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system. [0/1888]
- phpunit/phpunit 4.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.38 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.37 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.36 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.34 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.33 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.32 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.31 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.30 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.29 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.28 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.27 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.26 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.25 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.24 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.23 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.22 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.21 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.20 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.19 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.17 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.16 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.15 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.14 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit * -> satisfiable by phpunit/phpunit[3.7.0, 3.7.1, 3.7.10, 3.7.11, 3.7.12, 3.7.13, 3.7.14, 3.7.15, 3.7.16, 3.7.17, 3.7.18, 3.7.19, 3.7.2, 3.7.20, 3.7.21, 3.7.
22, 3.7.23, 3.7.24, 3.7.25, 3.7.26, 3.7.27, 3.7.28, 3.7.29, 3.7.3, 3.7.30, 3.7.31, 3.7.32, 3.7.33, 3.7.34, 3.7.35, 3.7.36, 3.7.37, 3.7.38, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 4.0.0, 4.0.1, 4.0.10, 4
.0.11, 4.0.12, 4.0.13, 4.0.14, 4.0.15, 4.0.16, 4.0.17, 4.0.18, 4.0.19, 4.0.2, 4.0.20, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.2.0, 4.2.1, 4.2.2,
4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.6.10, 4.6.2, 4.6.3, 4.6.4, 4.6.5, 4.6.6, 4.6.7, 4.6.8, 4.6.9,
4.7.0, 4.7.1, 4.7.2, 4.7.3].
Now I am leaning towards uninstalling my composer, and creating a new fresh copy.

sudo apt-get install php5.6-xml
fixed this for me on Ubuntu with PHP 5.6. (Its nothing to do with Laravel BTW - I'm not using that framework at all.)

I fixed it by installing the missing dependencies.
1008 php -v
1009 yum search php55
1010 yum -y install php55w-xml.x86_64
1011 clear
1012 su - api
1013 httpd restart
1014 service httpd restart

had the same problem, performed the composer installation command in the terminal and problem solved
the composer via yum install command:
yum install composer -y

You can install phpunit, after that, if there are problems, execute the command: sudo a2dismod php5 .If you still have questions, to analyze your problem by looking at the system log.

Related

Updating Composer in Digital Ocean Ubuntu via Terminal errors

I am using a mac and in the command line, I am logged into the server, and want to install composer however I get a number of issues (see below). I don't need PHP unit and so I have also tried composer install --no-dev but the same errors are appearing. Any idea or solution?
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for tijsverkoyen/css-to-inline-styles 2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
- tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2
- tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- laravel/framework v7.3.0 requires tijsverkoyen/css-to-inline-styles ^2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
- Installation request for laravel/framework v7.3.0 -> satisfiable by laravel/framework[v7.3.0].
I also tried to install the tijsverkoyen via Sudo and receive another list of issues
Problem 1
- phpunit/phpunit 8.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit ^8.5 -> satisfiable by phpunit/phpunit[8.5.0, 8.5.1, 8.5.2, 8.5.3, 8.5.x-dev].
The error message says you're missing the PHP extension ext-dom.
You'll need to install it by running sudo apt install php-xml.

Problem with creating laravel project - do not run Composer as root/super user

I have a problem with creating new laravel project. I installed Composer according to instruction but all the time when I try to create new project in laravel I have error like this:
Do not run Composer as root/super user! See
https://getcomposer.org/root for details Installing laravel/laravel
(v5.5.28)
- Installing laravel/laravel (v5.5.28): Loading from cache Created project in /mnt/c/xampp/htdocs/laravel
#php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating
dependencies (including require-dev) Your requirements could not be
resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 6.5.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 6.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, 6.0.1, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.2,
6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0, 6.3.1, 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.5.0, 6.5.1, 6.5.10, 6.5.11, 6.5.12, 6.5.13, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.6, 6.5.7, 6.5.8, 6.5.9].
To enable extensions, verify that they are enabled in your .ini
files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mbstring.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run php --ini inside terminal to see which files are
used by PHP in CLI mode. root#DESKTOP-T0FHR6I:/mnt/c/xampp/htdocs#
You can allow composer to run as root by copy and paste this line into your terminal:
export COMPOSER_ALLOW_SUPERUSER=1
Becasue running composer as root is not advisable, try to use this option with caution
As you can see from the error message, phpunit package requires ext-dom PHP extension to be installed. You should rather install ext-dom extensions or run composer with --ignore-platform-reqs flag:
composer create-project --ignore-platform-reqs --prefer-dist laravel/laravel blog
You can find explanation of this flag in official composer documentation:
--ignore-platform-reqs: ignore php, hhvm, lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these.

Errors in Laravel Creating Project

i am new with laravel
i installed composer and laravel in my ubuntu
but when i insert composer create-project laravel/laravel {projectname} to create project
these errors shows me
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 7.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.4.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.3.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.3.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.3.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.3.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.1.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 7.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit ^7.0 -> satisfiable by phpunit/phpunit[7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.5.0, 7.5.1, 7.5.x-dev].
i searched my this question on google but i could not find any useful thing
You should install the php-xml in order to make this happen.
sudo apt-get install php-xml
this will install the php-xml (depends on what version of php you're using). I think you can also do the following:
sudo apt-get install php7.0-xml

Can't install Laravel via Composer

I have a problem Composer and Laravel. I found a lot of similar topic but it doesn't work. So when I try install Laravel it will show me:
Installing laravel/laravel (v5.5.22)
Installing laravel/laravel (v5.5.22): Loading from cache Created project in sadsa
#php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating
dependencies (including require-dev) Your requirements could not be
resolved to an installable set of packages.
Problem 1
phpunit/phpunit 6.5.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Installation request for phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, 6.0.1, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.2,
6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0, 6.3.1, 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5].
To enable extensions, verify that they are enabled in your .ini
files:
/etc/php/7.0/cli/php.ini
/etc/php/7.0/cli/conf.d/10-opcache.ini
/etc/php/7.0/cli/conf.d/10-pdo.ini
/etc/php/7.0/cli/conf.d/20-calendar.ini
/etc/php/7.0/cli/conf.d/20-ctype.ini
/etc/php/7.0/cli/conf.d/20-exif.ini
/etc/php/7.0/cli/conf.d/20-fileinfo.ini
/etc/php/7.0/cli/conf.d/20-ftp.ini
/etc/php/7.0/cli/conf.d/20-gettext.ini
/etc/php/7.0/cli/conf.d/20-iconv.ini
/etc/php/7.0/cli/conf.d/20-json.ini
/etc/php/7.0/cli/conf.d/20-mbstring.ini
/etc/php/7.0/cli/conf.d/20-mcrypt.ini
/etc/php/7.0/cli/conf.d/20-phar.ini
/etc/php/7.0/cli/conf.d/20-posix.ini
/etc/php/7.0/cli/conf.d/20-readline.ini
/etc/php/7.0/cli/conf.d/20-shmop.ini
/etc/php/7.0/cli/conf.d/20-sockets.ini
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini
/etc/php/7.0/cli/conf.d/20-sysvsem.ini
/etc/php/7.0/cli/conf.d/20-sysvshm.ini
/etc/php/7.0/cli/conf.d/20-tokenizer.ini
/etc/php/7.0/cli/conf.d/20-xdebug.ini
/etc/php/7.0/cli/conf.d/20-zip.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
When I try install it globally, I have this but I can't use Laravel new something command:
Changed current directory to /home/michal/.composer
Using version ^1.5 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
How I said I found a lot of topic but nothing works like install mbstring and so on.
Looks to me it is mainly focus at message requires ext-dom. Possible work around i can suggest is to install following packages:
php-xml
php-common
Or you can try with specific php version as follow:
php7.0-xml
php7.0-common
for php 7.0
sudo apt-get install php7.0-xml
I am using Ubuntu 17.10 and PHP 7.1 is running well using
sudo apt-get install php7.1-xml
If you are using another version of PHP, for example: 7.0 can change it to
sudo apt-get install php7.0-xml
Don't forget to alwasy restart web server, for example in Ubuntu you can type in terminal:
sudo service apache2 reload
After that you can try run composer again. Hope this helps.

Composer not installing dependencies into PHP project

I'm trying to add the Paypal PHP SDK to my project:
composer require "paypal/rest-api-sdk-php:*"
but I keep getting the following error, and composer doesn't add \vendor into my project.
user#user:/opt/lampp/htdocs/projects/paypal/ipn$ composer require "paypal/rest-api-sdk-php:*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.
Problem 2
- phpunit/phpunit 3.7.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.38 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.37 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.36 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.34 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.33 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.32 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.31 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.30 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.29 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.28 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.27 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.26 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.25 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.24 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.23 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.22 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.21 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.20 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.19 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.17 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.16 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.15 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.14 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit 3.7.* -> satisfiable by phpunit/phpunit[3.7.0, 3.7.1, 3.7.10, 3.7.11, 3.7.12, 3.7.13, 3.7.14, 3.7.15, 3.7.16, 3.7.17, 3.7.18, 3.7.19, 3.7.2, 3.7.20, 3.7.21, 3.7.22, 3.7.23, 3.7.24, 3.7.25, 3.7.26, 3.7.27, 3.7.28, 3.7.29, 3.7.3, 3.7.30, 3.7.31, 3.7.32, 3.7.33, 3.7.34, 3.7.35, 3.7.36, 3.7.37, 3.7.38, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
user#user:/opt/lampp/htdocs/projects/paypal/ipn$
I have also tried: composer install which throws the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.
Problem 2
- phpunit/phpunit 3.7.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.38 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.37 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.36 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.34 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.33 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.32 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.31 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.30 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.29 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.28 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.27 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.26 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.25 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.24 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.23 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.22 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.21 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.20 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.19 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.17 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.16 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.15 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.14 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit 3.7.* -> satisfiable by phpunit/phpunit[3.7.0, 3.7.1, 3.7.10, 3.7.11, 3.7.12, 3.7.13, 3.7.14, 3.7.15, 3.7.16, 3.7.17, 3.7.18, 3.7.19, 3.7.2, 3.7.20, 3.7.21, 3.7.22, 3.7.23, 3.7.24, 3.7.25, 3.7.26, 3.7.27, 3.7.28, 3.7.29, 3.7.3, 3.7.30, 3.7.31, 3.7.32, 3.7.33, 3.7.34, 3.7.35, 3.7.36, 3.7.37, 3.7.38, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
user#user:/opt/lampp/htdocs/projects/paypal/ipn$
What could I be doing wrong?
Thank you all in advance.
Here's composer.json of my application:
{
"require" : {
"paypal/rest-api-sdk-php" : "*"
}
}
A platform requirement indicated in the composer.json of paypal/rest-api-sdk-php cannot be fulfilled, that is why composer refuses to install the package:
Problem 1
- The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.
Requiring a package with --ignore-platform-reqs
If all you care about is requiring the package, you can run
$ composer require paypal/rest-api-sdk-php --ignore-platform-reqs
For reference, see https://getcomposer.org/doc/03-cli.md#require:
--ignore-platform-reqs: ignore php, hhvm, lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these. See also the platform config option.
Installing packages with --ignore-platform-reqs
Assuming the package
has already been added to composer.json
composer.lock is up-to-date with the changes in composer.json
you can run
$ composer install --ignore-platform-reqs
For reference, see https://getcomposer.org/doc/03-cli.md#install:
--ignore-platform-reqs: ignore php, hhvm, lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these. See also the platform config option.
To find out whether composer.lock is up-to-date with the changes in composer.json, run
$ composer validate
Note: You may still not be able to use the package, as the package depends on ext/curl to be installed. To make sure you can install and use the package on a machine, you should install ext/curl on that machine.

Categories