在packagist.org
上新提交了一个包以后,一直composer require
不到资源。
不知道需要等待多久才能composer
到?
<code># 以下为调试信息 D:\ubuntu_share\composer\hello>php d:\bin\composer require pangou/hello-world -vvv You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Reading ./composer.json Loading config file ./composer.json Executing command (D:\ubuntu_share\composer\hello): git describe --exact-match --tags Executing command (D:\ubuntu_share\composer\hello): git branch --no-color --no-abbrev -v Executing command (D:\ubuntu_share\composer\hello): hg branch Executing command (D:\ubuntu_share\composer\hello): svn info --xml Failed to initialize global composer: Composer could not find the config file: C:/Users/Administrator/AppData/Roaming/Composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Downloading https://packagist.org/packages.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/packages.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2013.json from cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2014.json from cache Downloading http://packagist.org/p/provider-2015%24892cc7113cf0f30cc0db27a2d8cb45584c7881e7247ba2fe2b580366302ce653.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-04.json from cache Downloading http://packagist.org/p/provider-2015-07%24ff67e834038a3d373daa2428f5e6fdaf7e02a21ddb8b02e8f95c6761b38e22a8.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-07.json into cache Downloading http://packagist.org/p/provider-2015-10%24f3055c2306df02385f88e9b3494ffeed8b5499d9d14c6db9ce8ae2d6861fecd7.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-10.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2016-01.json from cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-archived.json from cache Downloading http://packagist.org/p/provider-latest%24878f7537ca276f1260dbb3f72297457eeeda58d6e92027dec978955a622e5757.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-latest.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/provider-pangou$hello-world.json from cache [InvalidArgumentException] Could not find package pangou/hello-world at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability Exception trace: () at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:605 Composer\Command\InitCommand->findBestVersionForPackage() at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:334 Composer\Command\InitCommand->determineRequirements() at phar://D:/bin/composer/src/Composer/Command/RequireCommand.php:107 Composer\Command\RequireCommand->execute() at phar://D:/bin/composer/vendor/symfony/console/Command/Command.php:259 Symfony\Component\Console\Command\Command->run() at phar://D:/bin/composer/vendor/symfony/console/Application.php:840 Symfony\Component\Console\Application->doRunCommand() at phar://D:/bin/composer/vendor/symfony/console/Application.php:192 Symfony\Component\Console\Application->doRun() at phar://D:/bin/composer/src/Composer/Console/Application.php:167 Composer\Console\Application->doRun() at phar://D:/bin/composer/vendor/symfony/console/Application.php:123 Symfony\Component\Console\Application->run() at phar://D:/bin/composer/src/Composer/Console/Application.php:98 Composer\Console\Application->run() at phar://D:/bin/composer/bin/composer:43 require() at D:\bin\composer:25 require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...</packages></code>
回复内容:
在packagist.org
上新提交了一个包以后,一直composer require
不到资源。
不知道需要等待多久才能composer
到?
<code># 以下为调试信息 D:\ubuntu_share\composer\hello>php d:\bin\composer require pangou/hello-world -vvv You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Reading ./composer.json Loading config file ./composer.json Executing command (D:\ubuntu_share\composer\hello): git describe --exact-match --tags Executing command (D:\ubuntu_share\composer\hello): git branch --no-color --no-abbrev -v Executing command (D:\ubuntu_share\composer\hello): hg branch Executing command (D:\ubuntu_share\composer\hello): svn info --xml Failed to initialize global composer: Composer could not find the config file: C:/Users/Administrator/AppData/Roaming/Composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Downloading https://packagist.org/packages.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/packages.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2013.json from cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2014.json from cache Downloading http://packagist.org/p/provider-2015%24892cc7113cf0f30cc0db27a2d8cb45584c7881e7247ba2fe2b580366302ce653.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-04.json from cache Downloading http://packagist.org/p/provider-2015-07%24ff67e834038a3d373daa2428f5e6fdaf7e02a21ddb8b02e8f95c6761b38e22a8.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-07.json into cache Downloading http://packagist.org/p/provider-2015-10%24f3055c2306df02385f88e9b3494ffeed8b5499d9d14c6db9ce8ae2d6861fecd7.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2015-10.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-2016-01.json from cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-archived.json from cache Downloading http://packagist.org/p/provider-latest%24878f7537ca276f1260dbb3f72297457eeeda58d6e92027dec978955a622e5757.json Writing C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/p-provider-latest.json into cache Reading C:/Users/Administrator/AppData/Local/Composer/repo/https---packagist.org/provider-pangou$hello-world.json from cache [InvalidArgumentException] Could not find package pangou/hello-world at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability Exception trace: () at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:605 Composer\Command\InitCommand->findBestVersionForPackage() at phar://D:/bin/composer/src/Composer/Command/InitCommand.php:334 Composer\Command\InitCommand->determineRequirements() at phar://D:/bin/composer/src/Composer/Command/RequireCommand.php:107 Composer\Command\RequireCommand->execute() at phar://D:/bin/composer/vendor/symfony/console/Command/Command.php:259 Symfony\Component\Console\Command\Command->run() at phar://D:/bin/composer/vendor/symfony/console/Application.php:840 Symfony\Component\Console\Application->doRunCommand() at phar://D:/bin/composer/vendor/symfony/console/Application.php:192 Symfony\Component\Console\Application->doRun() at phar://D:/bin/composer/src/Composer/Console/Application.php:167 Composer\Console\Application->doRun() at phar://D:/bin/composer/vendor/symfony/console/Application.php:123 Symfony\Component\Console\Application->run() at phar://D:/bin/composer/src/Composer/Console/Application.php:98 Composer\Console\Application->run() at phar://D:/bin/composer/bin/composer:43 require() at D:\bin\composer:25 require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...</packages></code>
刚好前2天建了个packagist,提交成功后就可以安装了,见http://segmentfault.com/a/1190000004294540
提交好马上就可以了,因为你在安装的时候他会去检索的

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

实现方法:1、使用“sleep(延迟秒数)”语句,可延迟执行函数若干秒;2、使用“time_nanosleep(延迟秒数,延迟纳秒数)”语句,可延迟执行函数若干秒和纳秒;3、使用“time_sleep_until(time()+7)”语句。

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

php字符串有下标。在PHP中,下标不仅可以应用于数组和对象,还可应用于字符串,利用字符串的下标和中括号“[]”可以访问指定索引位置的字符,并对该字符进行读写,语法“字符串名[下标值]”;字符串的下标值(索引值)只能是整数类型,起始值为0。

方法:1、用“str_replace(" ","其他字符",$str)”语句,可将nbsp符替换为其他字符;2、用“preg_replace("/(\s|\ \;||\xc2\xa0)/","其他字符",$str)”语句。

在php中,可以使用substr()函数来读取字符串后几个字符,只需要将该函数的第二个参数设置为负值,第三个参数省略即可;语法为“substr(字符串,-n)”,表示读取从字符串结尾处向前数第n个字符开始,直到字符串结尾的全部字符。

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。


Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

AI Hentai Generator
Erstellen Sie kostenlos Ai Hentai.

Heißer Artikel

Heiße Werkzeuge

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

SAP NetWeaver Server-Adapter für Eclipse
Integrieren Sie Eclipse mit dem SAP NetWeaver-Anwendungsserver.

Herunterladen der Mac-Version des Atom-Editors
Der beliebteste Open-Source-Editor

mPDF
mPDF ist eine PHP-Bibliothek, die PDF-Dateien aus UTF-8-codiertem HTML generieren kann. Der ursprüngliche Autor, Ian Back, hat mPDF geschrieben, um PDF-Dateien „on the fly“ von seiner Website auszugeben und verschiedene Sprachen zu verarbeiten. Es ist langsamer und erzeugt bei der Verwendung von Unicode-Schriftarten größere Dateien als Originalskripte wie HTML2FPDF, unterstützt aber CSS-Stile usw. und verfügt über viele Verbesserungen. Unterstützt fast alle Sprachen, einschließlich RTL (Arabisch und Hebräisch) und CJK (Chinesisch, Japanisch und Koreanisch). Unterstützt verschachtelte Elemente auf Blockebene (wie P, DIV),

SecLists
SecLists ist der ultimative Begleiter für Sicherheitstester. Dabei handelt es sich um eine Sammlung verschiedener Arten von Listen, die häufig bei Sicherheitsbewertungen verwendet werden, an einem Ort. SecLists trägt dazu bei, Sicherheitstests effizienter und produktiver zu gestalten, indem es bequem alle Listen bereitstellt, die ein Sicherheitstester benötigen könnte. Zu den Listentypen gehören Benutzernamen, Passwörter, URLs, Fuzzing-Payloads, Muster für vertrauliche Daten, Web-Shells und mehr. Der Tester kann dieses Repository einfach auf einen neuen Testcomputer übertragen und hat dann Zugriff auf alle Arten von Listen, die er benötigt.
