~에서https://github.com/parsecsv/parsecsv-for-php#installation:
Composer를 사용하면 설치가 쉽습니다. 명령줄에서 다음 명령을 실행하면 됩니다.
작곡가에는 parcsv/php-parsecsv가 필요합니다.
Drupal, Laravel, Symfony, Yii 등과 같은 프레임워크를 사용하지 않는 경우 PHP 스크립트에 Composer의 자동 로더 파일을 수동으로 포함해야 할 수도 있습니다.
한 번 필요목차. '/vendor/autoload.php';
작곡가 없음
권장되지는 않지만 기술적으로 가능합니다. 저장소를 복제하거나 ZIP을 추출할 수도 있습니다. ParseCSV를 사용하려면 require 'parsecsv.lib.php' 라인을 추가해야 합니다.
- 저는 Linux를 처음 접했는데 Composer가 무엇인지 모릅니다. 설치를 위한 구체적인 단계는 무엇입니까
parsecsv
? - 어떤 파일을 다운로드해야 합니까?
- 파일을 어디에 넣나요?
- 설명된 방법은 프로그램을 표준 bin 경로(무엇이든)에 자동으로 설치합니까?
센토스7을 사용하고 있습니다.
[root@server test]# yum install composer
: 몇 가지 오류가 발생합니다.
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-cli
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-openssl
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-iconv
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/spdx-licenses) >= 1.2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-reflection
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-json
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-justinrainbow-json-schema5
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-symfony-process
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-pcre
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-curl
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(seld/jsonlint) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-filter
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(fedora/autoloader)
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-hash
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-symfony-console
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/semver) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(psr/log) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-phar
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-libxml
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-zip
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-PsrLog >= 1.0.0-8
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/xdebug-handler) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/ca-bundle) >= 1.0
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-date
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-spl
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-seld-phar-utils >= 1.0.1
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-dom
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-mbstring
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php(language) >= 5.3.2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-xsl
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-zlib
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(seld/jsonlint) >= 1.4
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/xdebug-handler) >= 1.1
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-simplexml
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(psr/log) >= 1.0
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(seld/phar-utils) >= 1.0
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/spdx-licenses) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(seld/phar-utils) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/ca-bundle) < 2
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-symfony-finder
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-symfony-filesystem
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-tokenizer
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-composer(composer/semver) >= 1.0
Error: Package: composer-1.9.1-1.el7.noarch (epel)
Requires: php-intl
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
답변1
언급한 대로 실행하십시오 composer require parsecsv/php-parsecsv
. Composer가 없는 경우 CentOS는 이를 패키지로 제공합니다.yum install composer