InstalledVersions.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185
  1. <?php
  2. namespace Composer;
  3. use Composer\Autoload\ClassLoader;
  4. use Composer\Semver\VersionParser;
  5. class InstalledVersions
  6. {
  7. private static $installed = array (
  8. 'root' =>
  9. array (
  10. 'pretty_version' => 'dev-master',
  11. 'version' => 'dev-master',
  12. 'aliases' =>
  13. array (
  14. ),
  15. 'reference' => '7612bc05fcc8575c32cea5c0d86cacad96438f14',
  16. 'name' => 'topthink/think',
  17. ),
  18. 'versions' =>
  19. array (
  20. 'adbario/php-dot-notation' =>
  21. array (
  22. 'pretty_version' => '2.2.0',
  23. 'version' => '2.2.0.0',
  24. 'aliases' =>
  25. array (
  26. ),
  27. 'reference' => 'eee4fc81296531e6aafba4c2bbccfc5adab1676e',
  28. ),
  29. 'alibabacloud/cloudauth-20190307' =>
  30. array (
  31. 'pretty_version' => '1.0.2',
  32. 'version' => '1.0.2.0',
  33. 'aliases' =>
  34. array (
  35. ),
  36. 'reference' => 'dd505171c3c6c0c8db0c24b7116a83e15c7c37cf',
  37. ),
  38. 'alibabacloud/credentials' =>
  39. array (
  40. 'pretty_version' => '1.1.4',
  41. 'version' => '1.1.4.0',
  42. 'aliases' =>
  43. array (
  44. ),
  45. 'reference' => 'e79d4151ad8924c0cf79d4fe0ec151b8d7663a25',
  46. ),
  47. 'alibabacloud/endpoint-util' =>
  48. array (
  49. 'pretty_version' => '0.1.1',
  50. 'version' => '0.1.1.0',
  51. 'aliases' =>
  52. array (
  53. ),
  54. 'reference' => 'f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5',
  55. ),
  56. 'alibabacloud/openplatform-20191219' =>
  57. array (
  58. 'pretty_version' => '1.0.2',
  59. 'version' => '1.0.2.0',
  60. 'aliases' =>
  61. array (
  62. ),
  63. 'reference' => '558cee1c82005e08332ab274dc857641fd2bd0e2',
  64. ),
  65. 'alibabacloud/tea' =>
  66. array (
  67. 'pretty_version' => '3.1.22',
  68. 'version' => '3.1.22.0',
  69. 'aliases' =>
  70. array (
  71. ),
  72. 'reference' => 'f9c9b2c927253a1c23a5381cc655e41311be7f65',
  73. ),
  74. 'alibabacloud/tea-fileform' =>
  75. array (
  76. 'pretty_version' => '0.3.4',
  77. 'version' => '0.3.4.0',
  78. 'aliases' =>
  79. array (
  80. ),
  81. 'reference' => '4bf0c75a045c8115aa8cb1a394bd08d8bb833181',
  82. ),
  83. 'alibabacloud/tea-oss-sdk' =>
  84. array (
  85. 'pretty_version' => '0.3.5',
  86. 'version' => '0.3.5.0',
  87. 'aliases' =>
  88. array (
  89. ),
  90. 'reference' => '7f9c7ef0f6c05f3d6fb6b95195ba95d6929403e1',
  91. ),
  92. 'alibabacloud/tea-oss-utils' =>
  93. array (
  94. 'pretty_version' => '0.2.2',
  95. 'version' => '0.2.2.0',
  96. 'aliases' =>
  97. array (
  98. ),
  99. 'reference' => '42a218da7559a4352c9fc73640a71649484e9593',
  100. ),
  101. 'alibabacloud/tea-rpc' =>
  102. array (
  103. 'pretty_version' => '0.1.11',
  104. 'version' => '0.1.11.0',
  105. 'aliases' =>
  106. array (
  107. ),
  108. 'reference' => '35f0fda2c5fc1bde6ad4276f3e476dcc7bfdc5e8',
  109. ),
  110. 'alibabacloud/tea-rpc-utils' =>
  111. array (
  112. 'pretty_version' => '0.2.9',
  113. 'version' => '0.2.9.0',
  114. 'aliases' =>
  115. array (
  116. ),
  117. 'reference' => '8e7d3f8849ab08eae7cd75cbb7363f6040997c56',
  118. ),
  119. 'alibabacloud/tea-utils' =>
  120. array (
  121. 'pretty_version' => '0.2.14',
  122. 'version' => '0.2.14.0',
  123. 'aliases' =>
  124. array (
  125. ),
  126. 'reference' => '381df15cb4bdb58dbf596f94869ffd2ef680eddd',
  127. ),
  128. 'alibabacloud/tea-xml' =>
  129. array (
  130. 'pretty_version' => '0.2.2',
  131. 'version' => '0.2.2.0',
  132. 'aliases' =>
  133. array (
  134. ),
  135. 'reference' => '877869fa18fae4397d761d51959892024e8d1488',
  136. ),
  137. 'aliyuncs/oss-sdk-php' =>
  138. array (
  139. 'pretty_version' => 'v2.3.0',
  140. 'version' => '2.3.0.0',
  141. 'aliases' =>
  142. array (
  143. ),
  144. 'reference' => 'e69f57916678458642ac9d2fd341ae78a56996c8',
  145. ),
  146. 'dh2y/think-qrcode' =>
  147. array (
  148. 'pretty_version' => '2.0',
  149. 'version' => '2.0.0.0',
  150. 'aliases' =>
  151. array (
  152. ),
  153. 'reference' => '977d032afa27b1852f5fc5441fad2497f6db7ff5',
  154. ),
  155. 'doctrine/cache' =>
  156. array (
  157. 'pretty_version' => 'v1.4.4',
  158. 'version' => '1.4.4.0',
  159. 'aliases' =>
  160. array (
  161. ),
  162. 'reference' => '6433826dd02c9e5be8a127320dc13e7e6625d020',
  163. ),
  164. 'fenguoz/tron-php' =>
  165. array (
  166. 'pretty_version' => '1.3.0',
  167. 'version' => '1.3.0.0',
  168. 'aliases' =>
  169. array (
  170. ),
  171. 'reference' => '6e39e8e1fb9e7c6bd3e2f589c7eb13378d8bdf5d',
  172. ),
  173. 'fgrosse/phpasn1' =>
  174. array (
  175. 'pretty_version' => 'v2.3.0',
  176. 'version' => '2.3.0.0',
  177. 'aliases' =>
  178. array (
  179. ),
  180. 'reference' => '20299033c35f4300eb656e7e8e88cf52d1d6694e',
  181. ),
  182. 'firebase/php-jwt' =>
  183. array (
  184. 'pretty_version' => 'v5.0.0',
  185. 'version' => '5.0.0.0',
  186. 'aliases' =>
  187. array (
  188. ),
  189. 'reference' => '9984a4d3a32ae7673d6971ea00bae9d0a1abba0e',
  190. ),
  191. 'guzzle/batch' =>
  192. array (
  193. 'replaced' =>
  194. array (
  195. 0 => 'v3.9.3',
  196. ),
  197. ),
  198. 'guzzle/cache' =>
  199. array (
  200. 'replaced' =>
  201. array (
  202. 0 => 'v3.9.3',
  203. ),
  204. ),
  205. 'guzzle/common' =>
  206. array (
  207. 'replaced' =>
  208. array (
  209. 0 => 'v3.9.3',
  210. ),
  211. ),
  212. 'guzzle/guzzle' =>
  213. array (
  214. 'pretty_version' => 'v3.9.3',
  215. 'version' => '3.9.3.0',
  216. 'aliases' =>
  217. array (
  218. ),
  219. 'reference' => '0645b70d953bc1c067bbc8d5bc53194706b628d9',
  220. ),
  221. 'guzzle/http' =>
  222. array (
  223. 'replaced' =>
  224. array (
  225. 0 => 'v3.9.3',
  226. ),
  227. ),
  228. 'guzzle/inflection' =>
  229. array (
  230. 'replaced' =>
  231. array (
  232. 0 => 'v3.9.3',
  233. ),
  234. ),
  235. 'guzzle/iterator' =>
  236. array (
  237. 'replaced' =>
  238. array (
  239. 0 => 'v3.9.3',
  240. ),
  241. ),
  242. 'guzzle/log' =>
  243. array (
  244. 'replaced' =>
  245. array (
  246. 0 => 'v3.9.3',
  247. ),
  248. ),
  249. 'guzzle/parser' =>
  250. array (
  251. 'replaced' =>
  252. array (
  253. 0 => 'v3.9.3',
  254. ),
  255. ),
  256. 'guzzle/plugin' =>
  257. array (
  258. 'replaced' =>
  259. array (
  260. 0 => 'v3.9.3',
  261. ),
  262. ),
  263. 'guzzle/plugin-async' =>
  264. array (
  265. 'replaced' =>
  266. array (
  267. 0 => 'v3.9.3',
  268. ),
  269. ),
  270. 'guzzle/plugin-backoff' =>
  271. array (
  272. 'replaced' =>
  273. array (
  274. 0 => 'v3.9.3',
  275. ),
  276. ),
  277. 'guzzle/plugin-cache' =>
  278. array (
  279. 'replaced' =>
  280. array (
  281. 0 => 'v3.9.3',
  282. ),
  283. ),
  284. 'guzzle/plugin-cookie' =>
  285. array (
  286. 'replaced' =>
  287. array (
  288. 0 => 'v3.9.3',
  289. ),
  290. ),
  291. 'guzzle/plugin-curlauth' =>
  292. array (
  293. 'replaced' =>
  294. array (
  295. 0 => 'v3.9.3',
  296. ),
  297. ),
  298. 'guzzle/plugin-error-response' =>
  299. array (
  300. 'replaced' =>
  301. array (
  302. 0 => 'v3.9.3',
  303. ),
  304. ),
  305. 'guzzle/plugin-history' =>
  306. array (
  307. 'replaced' =>
  308. array (
  309. 0 => 'v3.9.3',
  310. ),
  311. ),
  312. 'guzzle/plugin-log' =>
  313. array (
  314. 'replaced' =>
  315. array (
  316. 0 => 'v3.9.3',
  317. ),
  318. ),
  319. 'guzzle/plugin-md5' =>
  320. array (
  321. 'replaced' =>
  322. array (
  323. 0 => 'v3.9.3',
  324. ),
  325. ),
  326. 'guzzle/plugin-mock' =>
  327. array (
  328. 'replaced' =>
  329. array (
  330. 0 => 'v3.9.3',
  331. ),
  332. ),
  333. 'guzzle/plugin-oauth' =>
  334. array (
  335. 'replaced' =>
  336. array (
  337. 0 => 'v3.9.3',
  338. ),
  339. ),
  340. 'guzzle/service' =>
  341. array (
  342. 'replaced' =>
  343. array (
  344. 0 => 'v3.9.3',
  345. ),
  346. ),
  347. 'guzzle/stream' =>
  348. array (
  349. 'replaced' =>
  350. array (
  351. 0 => 'v3.9.3',
  352. ),
  353. ),
  354. 'guzzlehttp/guzzle' =>
  355. array (
  356. 'pretty_version' => '6.3.3',
  357. 'version' => '6.3.3.0',
  358. 'aliases' =>
  359. array (
  360. ),
  361. 'reference' => '407b0cb880ace85c9b63c5f9551db498cb2d50ba',
  362. ),
  363. 'guzzlehttp/promises' =>
  364. array (
  365. 'pretty_version' => 'v1.3.1',
  366. 'version' => '1.3.1.0',
  367. 'aliases' =>
  368. array (
  369. ),
  370. 'reference' => 'a59da6cf61d80060647ff4d3eb2c03a2bc694646',
  371. ),
  372. 'guzzlehttp/psr7' =>
  373. array (
  374. 'pretty_version' => '1.5.2',
  375. 'version' => '1.5.2.0',
  376. 'aliases' =>
  377. array (
  378. ),
  379. 'reference' => '9f83dded91781a01c63574e387eaa769be769115',
  380. ),
  381. 'iexbase/tron-api' =>
  382. array (
  383. 'pretty_version' => 'v3.0',
  384. 'version' => '3.0.0.0',
  385. 'aliases' =>
  386. array (
  387. ),
  388. 'reference' => '0b286ea0fec5222e35e8a7fb32924f5de93f3500',
  389. ),
  390. 'ionux/phactor' =>
  391. array (
  392. 'pretty_version' => 'v1.0.8',
  393. 'version' => '1.0.8.0',
  394. 'aliases' =>
  395. array (
  396. ),
  397. 'reference' => '271373b65cffe75a8c28f7f8c392fe460251f4f7',
  398. ),
  399. 'kornrunner/keccak' =>
  400. array (
  401. 'pretty_version' => '1.1.0',
  402. 'version' => '1.1.0.0',
  403. 'aliases' =>
  404. array (
  405. ),
  406. 'reference' => '433749d28e117fb97baf9f2631b92b5d9ab3c890',
  407. ),
  408. 'kornrunner/secp256k1' =>
  409. array (
  410. 'pretty_version' => '0.1.2',
  411. 'version' => '0.1.2.0',
  412. 'aliases' =>
  413. array (
  414. ),
  415. 'reference' => '915f0ef1ec748606a1117b171093266de349b058',
  416. ),
  417. 'league/flysystem' =>
  418. array (
  419. 'pretty_version' => '1.0.57',
  420. 'version' => '1.0.57.0',
  421. 'aliases' =>
  422. array (
  423. ),
  424. 'reference' => '0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a',
  425. ),
  426. 'league/flysystem-cached-adapter' =>
  427. array (
  428. 'pretty_version' => '1.0.9',
  429. 'version' => '1.0.9.0',
  430. 'aliases' =>
  431. array (
  432. ),
  433. 'reference' => '08ef74e9be88100807a3b92cc9048a312bf01d6f',
  434. ),
  435. 'mattvb91/trontrx' =>
  436. array (
  437. 'pretty_version' => '0.3.0',
  438. 'version' => '0.3.0.0',
  439. 'aliases' =>
  440. array (
  441. ),
  442. 'reference' => '82a7000f20300e0312b85056b702d025b01ea4b6',
  443. ),
  444. 'mdanter/ecc' =>
  445. array (
  446. 'pretty_version' => 'v0.5.2',
  447. 'version' => '0.5.2.0',
  448. 'aliases' =>
  449. array (
  450. ),
  451. 'reference' => 'b95f25cc1bacc83a9f0ccd375900b7cfd343029e',
  452. ),
  453. 'monolog/monolog' =>
  454. array (
  455. 'pretty_version' => '1.24.0',
  456. 'version' => '1.24.0.0',
  457. 'aliases' =>
  458. array (
  459. ),
  460. 'reference' => 'bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266',
  461. ),
  462. 'nesbot/carbon' =>
  463. array (
  464. 'pretty_version' => '2.20.0',
  465. 'version' => '2.20.0.0',
  466. 'aliases' =>
  467. array (
  468. ),
  469. 'reference' => 'bc671b896c276795fad8426b0aa24e8ade0f2498',
  470. ),
  471. 'opis/closure' =>
  472. array (
  473. 'pretty_version' => '3.4.1',
  474. 'version' => '3.4.1.0',
  475. 'aliases' =>
  476. array (
  477. ),
  478. 'reference' => 'e79f851749c3caa836d7ccc01ede5828feb762c7',
  479. ),
  480. 'overtrue/pinyin' =>
  481. array (
  482. 'pretty_version' => '4.0.6',
  483. 'version' => '4.0.6.0',
  484. 'aliases' =>
  485. array (
  486. ),
  487. 'reference' => '9836dae1783bcf5934508a2abe32eca9ea5ee15d',
  488. ),
  489. 'overtrue/socialite' =>
  490. array (
  491. 'pretty_version' => '1.3.0',
  492. 'version' => '1.3.0.0',
  493. 'aliases' =>
  494. array (
  495. ),
  496. 'reference' => 'fda55f0acef43a144799b1957a8f93d9f5deffce',
  497. ),
  498. 'overtrue/wechat' =>
  499. array (
  500. 'pretty_version' => '3.3.33',
  501. 'version' => '3.3.33.0',
  502. 'aliases' =>
  503. array (
  504. ),
  505. 'reference' => '78e5476df330754040d1c400d0bca640d5b77cb7',
  506. ),
  507. 'paragonie/random_compat' =>
  508. array (
  509. 'pretty_version' => 'v9.99.99',
  510. 'version' => '9.99.99.0',
  511. 'aliases' =>
  512. array (
  513. ),
  514. 'reference' => '84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95',
  515. ),
  516. 'phpmailer/phpmailer' =>
  517. array (
  518. 'pretty_version' => 'v6.5.0',
  519. 'version' => '6.5.0.0',
  520. 'aliases' =>
  521. array (
  522. ),
  523. 'reference' => 'a5b5c43e50b7fba655f793ad27303cd74c57363c',
  524. ),
  525. 'phpoffice/phpexcel' =>
  526. array (
  527. 'pretty_version' => '1.8.2',
  528. 'version' => '1.8.2.0',
  529. 'aliases' =>
  530. array (
  531. ),
  532. 'reference' => '1441011fb7ecdd8cc689878f54f8b58a6805f870',
  533. ),
  534. 'phpseclib/phpseclib' =>
  535. array (
  536. 'pretty_version' => '2.0.32',
  537. 'version' => '2.0.32.0',
  538. 'aliases' =>
  539. array (
  540. ),
  541. 'reference' => 'f5c4c19880d45d0be3e7d24ae8ac434844a898cd',
  542. ),
  543. 'pimple/pimple' =>
  544. array (
  545. 'pretty_version' => 'v3.2.3',
  546. 'version' => '3.2.3.0',
  547. 'aliases' =>
  548. array (
  549. ),
  550. 'reference' => '9e403941ef9d65d20cba7d54e29fe906db42cf32',
  551. ),
  552. 'psr/cache' =>
  553. array (
  554. 'pretty_version' => '1.0.1',
  555. 'version' => '1.0.1.0',
  556. 'aliases' =>
  557. array (
  558. ),
  559. 'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8',
  560. ),
  561. 'psr/container' =>
  562. array (
  563. 'pretty_version' => '1.0.0',
  564. 'version' => '1.0.0.0',
  565. 'aliases' =>
  566. array (
  567. ),
  568. 'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',
  569. ),
  570. 'psr/http-message' =>
  571. array (
  572. 'pretty_version' => '1.0.1',
  573. 'version' => '1.0.1.0',
  574. 'aliases' =>
  575. array (
  576. ),
  577. 'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
  578. ),
  579. 'psr/http-message-implementation' =>
  580. array (
  581. 'provided' =>
  582. array (
  583. 0 => '1.0',
  584. ),
  585. ),
  586. 'psr/log' =>
  587. array (
  588. 'pretty_version' => '1.1.2',
  589. 'version' => '1.1.2.0',
  590. 'aliases' =>
  591. array (
  592. ),
  593. 'reference' => '446d54b4cb6bf489fc9d75f55843658e6f25d801',
  594. ),
  595. 'psr/log-implementation' =>
  596. array (
  597. 'provided' =>
  598. array (
  599. 0 => '1.0.0',
  600. ),
  601. ),
  602. 'psr/simple-cache' =>
  603. array (
  604. 'pretty_version' => '1.0.1',
  605. 'version' => '1.0.1.0',
  606. 'aliases' =>
  607. array (
  608. ),
  609. 'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',
  610. ),
  611. 'qcloud/cos-sdk-v5' =>
  612. array (
  613. 'pretty_version' => 'v1.3.3',
  614. 'version' => '1.3.3.0',
  615. 'aliases' =>
  616. array (
  617. ),
  618. 'reference' => 'cd1b9cefa04521eaf125a82eb53552d9a87aae4d',
  619. ),
  620. 'qiniu/php-sdk' =>
  621. array (
  622. 'pretty_version' => 'v7.2.9',
  623. 'version' => '7.2.9.0',
  624. 'aliases' =>
  625. array (
  626. ),
  627. 'reference' => 'afe7d8715d8a688b1d8d8cdf031240d2363dad90',
  628. ),
  629. 'ralouphie/getallheaders' =>
  630. array (
  631. 'pretty_version' => '2.0.5',
  632. 'version' => '2.0.5.0',
  633. 'aliases' =>
  634. array (
  635. ),
  636. 'reference' => '5601c8a83fbba7ef674a7369456d12f1e0d0eafa',
  637. ),
  638. 'ralouphie/mimey' =>
  639. array (
  640. 'pretty_version' => '2.1.0',
  641. 'version' => '2.1.0.0',
  642. 'aliases' =>
  643. array (
  644. ),
  645. 'reference' => '8f74e6da73f9df7bd965e4e123f3d8fb9acb89ba',
  646. ),
  647. 'sc0vu/web3.php' =>
  648. array (
  649. 'pretty_version' => '0.1.4',
  650. 'version' => '0.1.4.0',
  651. 'aliases' =>
  652. array (
  653. ),
  654. 'reference' => '1fb7762eb7763b0ccdbac1483819606e9edc6a49',
  655. ),
  656. 'simplito/bigint-wrapper-php' =>
  657. array (
  658. 'pretty_version' => '1.0.0',
  659. 'version' => '1.0.0.0',
  660. 'aliases' =>
  661. array (
  662. ),
  663. 'reference' => 'cf21ec76d33f103add487b3eadbd9f5033a25930',
  664. ),
  665. 'simplito/bn-php' =>
  666. array (
  667. 'pretty_version' => '1.1.2',
  668. 'version' => '1.1.2.0',
  669. 'aliases' =>
  670. array (
  671. ),
  672. 'reference' => 'e852fcd27e4acbc32459606d7606e45a85e42465',
  673. ),
  674. 'simplito/elliptic-php' =>
  675. array (
  676. 'pretty_version' => '1.0.8',
  677. 'version' => '1.0.8.0',
  678. 'aliases' =>
  679. array (
  680. ),
  681. 'reference' => '5cebaf29adce31a398368972a43d13def1e7ba15',
  682. ),
  683. 'spatie/macroable' =>
  684. array (
  685. 'pretty_version' => '1.0.0',
  686. 'version' => '1.0.0.0',
  687. 'aliases' =>
  688. array (
  689. ),
  690. 'reference' => '74b0d189ce75142f1706aad834d5a428dfc7c3c3',
  691. ),
  692. 'symfony/event-dispatcher' =>
  693. array (
  694. 'pretty_version' => 'v2.8.50',
  695. 'version' => '2.8.50.0',
  696. 'aliases' =>
  697. array (
  698. ),
  699. 'reference' => 'a77e974a5fecb4398833b0709210e3d5e334ffb0',
  700. ),
  701. 'symfony/http-foundation' =>
  702. array (
  703. 'pretty_version' => 'v3.4.28',
  704. 'version' => '3.4.28.0',
  705. 'aliases' =>
  706. array (
  707. ),
  708. 'reference' => '677ae5e892b081e71a665bfa7dd90fe61800c00e',
  709. ),
  710. 'symfony/polyfill-mbstring' =>
  711. array (
  712. 'pretty_version' => 'v1.11.0',
  713. 'version' => '1.11.0.0',
  714. 'aliases' =>
  715. array (
  716. ),
  717. 'reference' => 'fe5e94c604826c35a32fa832f35bd036b6799609',
  718. ),
  719. 'symfony/polyfill-php70' =>
  720. array (
  721. 'pretty_version' => 'v1.11.0',
  722. 'version' => '1.11.0.0',
  723. 'aliases' =>
  724. array (
  725. ),
  726. 'reference' => 'bc4858fb611bda58719124ca079baff854149c89',
  727. ),
  728. 'symfony/polyfill-php72' =>
  729. array (
  730. 'pretty_version' => 'v1.11.0',
  731. 'version' => '1.11.0.0',
  732. 'aliases' =>
  733. array (
  734. ),
  735. 'reference' => 'ab50dcf166d5f577978419edd37aa2bb8eabce0c',
  736. ),
  737. 'symfony/process' =>
  738. array (
  739. 'pretty_version' => 'v4.3.2',
  740. 'version' => '4.3.2.0',
  741. 'aliases' =>
  742. array (
  743. ),
  744. 'reference' => '856d35814cf287480465bb7a6c413bb7f5f5e69c',
  745. ),
  746. 'symfony/psr-http-message-bridge' =>
  747. array (
  748. 'pretty_version' => 'v1.2.0',
  749. 'version' => '1.2.0.0',
  750. 'aliases' =>
  751. array (
  752. ),
  753. 'reference' => '9ab9d71f97d5c7d35a121a7fb69f74fee95cd0ad',
  754. ),
  755. 'symfony/translation' =>
  756. array (
  757. 'pretty_version' => 'v4.3.2',
  758. 'version' => '4.3.2.0',
  759. 'aliases' =>
  760. array (
  761. ),
  762. 'reference' => '934ab1d18545149e012aa898cf02e9f23790f7a0',
  763. ),
  764. 'symfony/translation-contracts' =>
  765. array (
  766. 'pretty_version' => 'v1.1.5',
  767. 'version' => '1.1.5.0',
  768. 'aliases' =>
  769. array (
  770. ),
  771. 'reference' => 'cb4b18ad7b92a26e83b65dde940fab78339e6f3c',
  772. ),
  773. 'symfony/translation-implementation' =>
  774. array (
  775. 'provided' =>
  776. array (
  777. 0 => '1.0',
  778. ),
  779. ),
  780. 'symfony/var-dumper' =>
  781. array (
  782. 'pretty_version' => 'v4.3.1',
  783. 'version' => '4.3.1.0',
  784. 'aliases' =>
  785. array (
  786. ),
  787. 'reference' => 'f974f448154928d2b5fb7c412bd23b81d063f34b',
  788. ),
  789. 'topthink/framework' =>
  790. array (
  791. 'pretty_version' => 'v6.0.0',
  792. 'version' => '6.0.0.0',
  793. 'aliases' =>
  794. array (
  795. ),
  796. 'reference' => '79c555aab0313d1a33ddcdb3c395f2c47f37f597',
  797. ),
  798. 'topthink/think' =>
  799. array (
  800. 'pretty_version' => 'dev-master',
  801. 'version' => 'dev-master',
  802. 'aliases' =>
  803. array (
  804. ),
  805. 'reference' => '7612bc05fcc8575c32cea5c0d86cacad96438f14',
  806. ),
  807. 'topthink/think-captcha' =>
  808. array (
  809. 'pretty_version' => 'v3.0.1',
  810. 'version' => '3.0.1.0',
  811. 'aliases' =>
  812. array (
  813. ),
  814. 'reference' => '9fc0c627d773f6a54a8dd142ebf358f746557a48',
  815. ),
  816. 'topthink/think-factory' =>
  817. array (
  818. 'pretty_version' => 'v1.0.1',
  819. 'version' => '1.0.1.0',
  820. 'aliases' =>
  821. array (
  822. ),
  823. 'reference' => 'b8080a6472aae1cff47ceb8c30feec3c2835364b',
  824. ),
  825. 'topthink/think-helper' =>
  826. array (
  827. 'pretty_version' => 'v3.1.3',
  828. 'version' => '3.1.3.0',
  829. 'aliases' =>
  830. array (
  831. ),
  832. 'reference' => '4d85dfd3778623bbb1de3648f1dcd0c82f4439f4',
  833. ),
  834. 'topthink/think-image' =>
  835. array (
  836. 'pretty_version' => 'v1.0.7',
  837. 'version' => '1.0.7.0',
  838. 'aliases' =>
  839. array (
  840. ),
  841. 'reference' => '8586cf47f117481c6d415b20f7dedf62e79d5512',
  842. ),
  843. 'topthink/think-multi-app' =>
  844. array (
  845. 'pretty_version' => 'v1.0.11',
  846. 'version' => '1.0.11.0',
  847. 'aliases' =>
  848. array (
  849. ),
  850. 'reference' => '215f4a6bb88e53ad41b448c61957336eb55ce6f9',
  851. ),
  852. 'topthink/think-orm' =>
  853. array (
  854. 'pretty_version' => 'v2.0.27',
  855. 'version' => '2.0.27.0',
  856. 'aliases' =>
  857. array (
  858. ),
  859. 'reference' => '02affaaccade2cdd8bbb2d2f5d15e46113e6eb50',
  860. ),
  861. 'topthink/think-queue' =>
  862. array (
  863. 'pretty_version' => 'v3.0.2',
  864. 'version' => '3.0.2.0',
  865. 'aliases' =>
  866. array (
  867. ),
  868. 'reference' => 'c34b983abce9427fca7e30ac983b75041f436ad0',
  869. ),
  870. 'topthink/think-template' =>
  871. array (
  872. 'pretty_version' => 'v2.0.7',
  873. 'version' => '2.0.7.0',
  874. 'aliases' =>
  875. array (
  876. ),
  877. 'reference' => 'e98bdbb4a4c94b442f17dfceba81e0134d4fbd19',
  878. ),
  879. 'topthink/think-view' =>
  880. array (
  881. 'pretty_version' => 'v1.0.13',
  882. 'version' => '1.0.13.0',
  883. 'aliases' =>
  884. array (
  885. ),
  886. 'reference' => '90803b73f781db5d42619082c4597afc58b2d4c5',
  887. ),
  888. 'workerman/channel' =>
  889. array (
  890. 'pretty_version' => 'v1.0.5',
  891. 'version' => '1.0.5.0',
  892. 'aliases' =>
  893. array (
  894. ),
  895. 'reference' => '0836a9a413c6e8425ee36307d95e2e49cc380f50',
  896. ),
  897. 'workerman/workerman' =>
  898. array (
  899. 'pretty_version' => 'v3.5.19',
  900. 'version' => '3.5.19.0',
  901. 'aliases' =>
  902. array (
  903. ),
  904. 'reference' => '4e5c24073b431fd950287efbfb5cc9b4c0fc7367',
  905. ),
  906. 'xaboy/form-builder' =>
  907. array (
  908. 'pretty_version' => '1.2.10',
  909. 'version' => '1.2.10.0',
  910. 'aliases' =>
  911. array (
  912. ),
  913. 'reference' => '198c5f066499eef8b005f5d504fcb6120fa3ac04',
  914. ),
  915. ),
  916. );
  917. private static $canGetVendors;
  918. private static $installedByVendor = array();
  919. public static function getInstalledPackages()
  920. {
  921. $packages = array();
  922. foreach (self::getInstalled() as $installed) {
  923. $packages[] = array_keys($installed['versions']);
  924. }
  925. if (1 === \count($packages)) {
  926. return $packages[0];
  927. }
  928. return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
  929. }
  930. public static function isInstalled($packageName)
  931. {
  932. foreach (self::getInstalled() as $installed) {
  933. if (isset($installed['versions'][$packageName])) {
  934. return true;
  935. }
  936. }
  937. return false;
  938. }
  939. public static function satisfies(VersionParser $parser, $packageName, $constraint)
  940. {
  941. $constraint = $parser->parseConstraints($constraint);
  942. $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
  943. return $provided->matches($constraint);
  944. }
  945. public static function getVersionRanges($packageName)
  946. {
  947. foreach (self::getInstalled() as $installed) {
  948. if (!isset($installed['versions'][$packageName])) {
  949. continue;
  950. }
  951. $ranges = array();
  952. if (isset($installed['versions'][$packageName]['pretty_version'])) {
  953. $ranges[] = $installed['versions'][$packageName]['pretty_version'];
  954. }
  955. if (array_key_exists('aliases', $installed['versions'][$packageName])) {
  956. $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
  957. }
  958. if (array_key_exists('replaced', $installed['versions'][$packageName])) {
  959. $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
  960. }
  961. if (array_key_exists('provided', $installed['versions'][$packageName])) {
  962. $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
  963. }
  964. return implode(' || ', $ranges);
  965. }
  966. throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
  967. }
  968. public static function getVersion($packageName)
  969. {
  970. foreach (self::getInstalled() as $installed) {
  971. if (!isset($installed['versions'][$packageName])) {
  972. continue;
  973. }
  974. if (!isset($installed['versions'][$packageName]['version'])) {
  975. return null;
  976. }
  977. return $installed['versions'][$packageName]['version'];
  978. }
  979. throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
  980. }
  981. public static function getPrettyVersion($packageName)
  982. {
  983. foreach (self::getInstalled() as $installed) {
  984. if (!isset($installed['versions'][$packageName])) {
  985. continue;
  986. }
  987. if (!isset($installed['versions'][$packageName]['pretty_version'])) {
  988. return null;
  989. }
  990. return $installed['versions'][$packageName]['pretty_version'];
  991. }
  992. throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
  993. }
  994. public static function getReference($packageName)
  995. {
  996. foreach (self::getInstalled() as $installed) {
  997. if (!isset($installed['versions'][$packageName])) {
  998. continue;
  999. }
  1000. if (!isset($installed['versions'][$packageName]['reference'])) {
  1001. return null;
  1002. }
  1003. return $installed['versions'][$packageName]['reference'];
  1004. }
  1005. throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
  1006. }
  1007. public static function getRootPackage()
  1008. {
  1009. $installed = self::getInstalled();
  1010. return $installed[0]['root'];
  1011. }
  1012. public static function getRawData()
  1013. {
  1014. @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
  1015. return self::$installed;
  1016. }
  1017. public static function getAllRawData()
  1018. {
  1019. return self::getInstalled();
  1020. }
  1021. public static function reload($data)
  1022. {
  1023. self::$installed = $data;
  1024. self::$installedByVendor = array();
  1025. }
  1026. private static function getInstalled()
  1027. {
  1028. if (null === self::$canGetVendors) {
  1029. self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
  1030. }
  1031. $installed = array();
  1032. if (self::$canGetVendors) {
  1033. foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
  1034. if (isset(self::$installedByVendor[$vendorDir])) {
  1035. $installed[] = self::$installedByVendor[$vendorDir];
  1036. } elseif (is_file($vendorDir.'/composer/installed.php')) {
  1037. $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
  1038. }
  1039. }
  1040. }
  1041. $installed[] = self::$installed;
  1042. return $installed;
  1043. }
  1044. }