Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a8f6ca0f3 | ||
|
|
086b7509fe | ||
|
|
e2bff08f7d | ||
|
|
c105ff288c |
@@ -0,0 +1,4 @@
|
|||||||
|
LAYSITE_SITE_URL=https://laysense.cn
|
||||||
|
LAYSITE_LISTEN=http://127.0.0.1:8990
|
||||||
|
LAYSITE_DB=storage/laysite.sqlite
|
||||||
|
LAYSITE_MEDIA_DIR=storage/media
|
||||||
@@ -1,8 +1,16 @@
|
|||||||
# laysense.cn 迁移到 LaySite 1.5.2
|
# laysense.cn 与 LaySite 1.5.2
|
||||||
|
|
||||||
|
此版本包含从 `backup` 迁移的 SQLite 和媒体,以及锁定版本的 PHP 依赖。检出后,在程序目录直接启动。
|
||||||
|
|
||||||
|
```sh
|
||||||
|
php start.php start
|
||||||
|
```
|
||||||
|
|
||||||
|
监听地址为 `127.0.0.1:8990`,使用原管理员账号登录。部署后的站点数据由 `storage/` 保存,后续程序更新使用官方更新器。
|
||||||
|
|
||||||
程序文件与官方 `v1.5.2` 一致。这个目录的脚本负责一次性转换来笙网站的数据。迁移后的站点由 LaySite 原生功能运行。
|
程序文件与官方 `v1.5.2` 一致。这个目录的脚本负责一次性转换来笙网站的数据。迁移后的站点由 LaySite 原生功能运行。
|
||||||
|
|
||||||
## 生成迁移数据
|
## 从其他旧站副本重新迁移
|
||||||
|
|
||||||
把本分支检出到新的程序目录,并在该目录运行以下命令。第一个参数可以是原网站程序目录,也可以是已经分离的旧数据目录。
|
把本分支检出到新的程序目录,并在该目录运行以下命令。第一个参数可以是原网站程序目录,也可以是已经分离的旧数据目录。
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use App\Content\Database;
|
||||||
|
use App\Content\Media;
|
||||||
|
use App\Content\PageHead;
|
||||||
|
|
||||||
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
|
$old = '86d3c75c2c280084ec6fcee11c501f45.js';
|
||||||
|
$new = '6354c518797c1214723222c27051d456.js';
|
||||||
|
$source = dirname(__DIR__) . '/storage/media/' . $new;
|
||||||
|
|
||||||
|
$changed = Database::write(static function (PDO $db) use ($old, $new, $source): bool {
|
||||||
|
$head = $db->query("SELECT head_html FROM pages WHERE slug = 'home'")->fetchColumn();
|
||||||
|
if (!is_string($head) || !str_contains($head, '/assets/uploads/' . $old)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$head = PageHead::normalize(str_replace('/assets/uploads/' . $old, '/assets/uploads/' . $new, $head));
|
||||||
|
$contents = file_get_contents($source);
|
||||||
|
if ($contents === false || substr(hash('sha256', $contents), 0, 32) . '.js' !== $new) {
|
||||||
|
throw new RuntimeException('首页动效文件缺失或校验失败。');
|
||||||
|
}
|
||||||
|
$destination = Media::directory() . '/' . $new;
|
||||||
|
if (is_file($destination)) {
|
||||||
|
if (hash_file('sha256', $destination) !== hash('sha256', $contents)) {
|
||||||
|
throw new RuntimeException('媒体库中同名文件的内容不一致。');
|
||||||
|
}
|
||||||
|
} elseif (!copy($source, $destination)) {
|
||||||
|
throw new RuntimeException('无法写入首页动效文件。');
|
||||||
|
}
|
||||||
|
$db->prepare("INSERT OR IGNORE INTO media (name, label, mime, size, created_at)
|
||||||
|
VALUES (?, 'laysense-home.js', 'text/javascript', ?, ?)")->execute([$new, strlen($contents), gmdate('c')]);
|
||||||
|
$db->prepare("UPDATE pages SET head_html = ?, version = version + 1 WHERE slug = 'home'")->execute([$head]);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
echo $changed ? "首页光标已修复。\n" : "首页无需更新。\n";
|
||||||
@@ -3,11 +3,13 @@
|
|||||||
const homeHero = document.querySelector('#main-content > .hero-home');
|
const homeHero = document.querySelector('#main-content > .hero-home');
|
||||||
const homeTitle = homeHero?.querySelector('.hero-copy h1');
|
const homeTitle = homeHero?.querySelector('.hero-copy h1');
|
||||||
if (homeTitle) {
|
if (homeTitle) {
|
||||||
|
const lastLine = homeTitle.querySelector('.hero-accent') || homeTitle.querySelector('.hero-heading-primary') || homeTitle;
|
||||||
const cursor = document.createElement('span');
|
const cursor = document.createElement('span');
|
||||||
cursor.className = 'home-cursor';
|
cursor.className = 'home-cursor';
|
||||||
cursor.setAttribute('aria-hidden', 'true');
|
cursor.setAttribute('aria-hidden', 'true');
|
||||||
cursor.textContent = '_';
|
cursor.textContent = '_';
|
||||||
homeTitle.append(cursor);
|
// A word joiner prevents a narrow line from wrapping just the cursor.
|
||||||
|
lastLine.append('\u2060', cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
const homeImage = homeHero?.querySelector('.hero-visual > img');
|
const homeImage = homeHero?.querySelector('.hero-visual > img');
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1033 1024" width="50"><path d="M512 512m-499.2 0a499.2 499.2 0 1 0 998.4 0 499.2 499.2 0 1 0-998.4 0Z" fill="#1989FA" fill-opacity=".3"/><path d="M13.4144 536.8832A507.4816 507.4816 0 0 1 12.8 512C12.8 236.288 236.288 12.8 512 12.8c134.464 0 256.512 53.1584 346.2656 139.6096-7.1936 13.1328-18.2528 22.8992-28.5696 31.7056-17.1392 14.656-21.12-14.6432-34.3808-62.9888s-113.792-20.736-113.792 0 90.2272 29.6064-2.5984 79.296c-27.84 14.8992-65.1136 16.2176-87.8464 27.648-12.1344 6.0928-6.528 44.1856-14.6176 59.3152-6.272 11.776-26.8288 2.4064-31.68 0-24.8192-12.288-7.8336-80.9472-27.1104-86.9632-26.3168-8.2304-50.2784 27.4304-50.2784 40.64 0 15.0656 22.464 94.72 0 151.0784-24.8832 62.4256-104.5504 120.7936-156.2624 110.2976-98.4064-19.968-122.4448-48.4608-143.7184-19.968-21.2864 28.4928 12.9664 94.976 37.5552 135.6544 24.576 40.6656 2.56 92.2624-24.5888 92.2624-36.544 0-79.7824-46.6816-102.8096-92.2624-11.4048-22.5664-32.7936-49.664-64.1536-81.2416z m466.3936 246.7456c55.8336-38.3232 121.7664-60.6976 185.28-38.3232 63.488 22.3616 85.376 158.2976 31.616 200.0256-53.76 41.728-106.112 14.1696-128.7296 0-22.6176-14.1824-155.9936 14.1696-177.984 0-21.9904-14.1824-45.824-44.0832-45.824-99.776 0-55.68 79.808-23.616 135.6416-61.9264z m-171.392-146.7136c12.288-25.4208 40.64 7.168 57.3056-39.68 16.6656-46.8736 31.616-56.6784 49.344-26.5984 17.7408 30.08 13.376 62.7968 0 82.5344-13.376 19.7248-12.7872 15.5008-48.768 15.5008-35.968 0-70.1952-6.336-57.8944-31.7568zM473.0112 435.2c13.0176 1.3824 19.52 5.824 19.52 13.3504 0 11.2768-9.7536 26.9056-9.7536 26.9056s-27.1616 15.2576-33.28 8.704c-6.0928-6.528 8.1664-22.272 8.1664-35.6096 0-8.896 5.12-13.3504 15.36-13.3504z m24.6016 206.3488c28.9536-16.0512 51.7632-18.6368 68.4032-7.744 24.96 16.3456 87.2448 28.9024 87.2448 36.4928v25.0368c-51.9296-2.9824-85.248-11.328-99.9424-25.0368-22.0416-20.5568-66.9312 9.0368-66.9312 0 0-6.016 3.7376-15.6032 11.2256-28.7488z" fill="#1989FA"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1024 1024" width="50"><path d="M891.2 948.8l-33.6-96H699.2l-33.6 96H564.8l153.6-403.2h115.2l153.6 403.2h-96zM780.8 632l-57.6 148.8h115.2L780.8 632zM526.4 780.8L569.6 680c-14.4-9.6-28.8-19.2-38.4-28.8 72-81.6 129.6-182.4 172.8-302.4h129.6v-96H468.8l72-24c-9.6-33.6-33.6-86.4-57.6-129.6l-105.6 33.6c19.2 38.4 38.4 86.4 48 120H70.4v96h134.4c43.2 120 105.6 220.8 177.6 302.4C296 718.4 185.6 766.4 56 800c19.2 24 48 72 62.4 96 134.4-38.4 249.6-96 340.8-172.8 19.2 19.2 43.2 38.4 67.2 57.6z m-220.8-432h288C560 440 512 516.8 454.4 584 392 516.8 339.2 440 305.6 348.8z"/></svg>
|
||||||
|
After Width: | Height: | Size: 635 B |
@@ -0,0 +1,177 @@
|
|||||||
|
.hero-pagepan .app-frame img, .hero-highspeaker .app-frame img { aspect-ratio: 16/9; object-fit: contain; height: auto; }
|
||||||
|
.hero-shnu-sc .hero-visual.app-frame img { aspect-ratio: 1916/821; object-fit: contain; height: auto; }
|
||||||
|
.hero-sc .hero-visual.app-frame img { aspect-ratio: 1586/992; object-fit: contain; height: auto; }
|
||||||
|
.hero-pagepan h1 { font-size: clamp(2.8rem, 6vw, 6.1rem); }
|
||||||
|
.hero-highspeaker h1 { font-size: clamp(2.7rem, 5.1vw, 5.05rem); }
|
||||||
|
.hero-sc, .hero-shnu-sc { background: #f7f8fb; }
|
||||||
|
|
||||||
|
@media (max-width: 44rem) {
|
||||||
|
.hero-highspeaker h1 { font-size: clamp(2.4rem, 12vw, 2.7rem); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-shnu-sc ~ #benefits { background: #f7f9fe; padding-block: clamp(3.25rem, 6vw, 6rem); }
|
||||||
|
.hero-shnu-sc ~ #benefits .section-heading { margin-bottom: 1.25rem; }
|
||||||
|
.hero-shnu-sc ~ #benefits h2 { font-size: clamp(1.85rem, 3.35vw, 3rem); }
|
||||||
|
.hero-shnu-sc ~ #benefits .rich > p { margin-bottom: .85rem; }
|
||||||
|
.hero-shnu-sc ~ #benefits .rich > ul { padding-left: 1.35rem; }
|
||||||
|
.hero-shnu-sc ~ #benefits .rich > ul li + li { margin-top: .35rem; }
|
||||||
|
.hero-shnu-sc ~ #benefits .rich > ul li::marker { color: var(--accent); }
|
||||||
|
.hero-shnu-sc ~ #benefits .rich > img {
|
||||||
|
width: var(--studio-media-width, 100%);
|
||||||
|
max-width: 100%;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
box-shadow: 0 .75rem 2.25rem #101c341a;
|
||||||
|
}
|
||||||
|
@media (min-width: 52rem) {
|
||||||
|
.hero-shnu-sc ~ #benefits > .wrap:has(> .rich > p:first-child + ul + img:last-child) {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
|
||||||
|
gap: .8rem clamp(2rem, 5vw, 5.5rem);
|
||||||
|
align-content: center;
|
||||||
|
}
|
||||||
|
.hero-shnu-sc ~ #benefits > .wrap:has(> .rich > p:first-child + ul + img:last-child) > .rich { display: contents; }
|
||||||
|
.hero-shnu-sc ~ #benefits > .wrap:has(> .rich > p:first-child + ul + img:last-child) :is(.section-heading, .rich > p, .rich > ul) {
|
||||||
|
grid-column: 1;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.hero-shnu-sc ~ #benefits > .wrap:has(> .rich > p:first-child + ul + img:last-child) .rich > img {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: 1 / span 3;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #materials .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #why .choice-card { background: #e9f0ff; border-color: #7599ec; box-shadow: inset 0 3px var(--accent); }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #why .choice-card h3 { color: var(--accent-deep); }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #options .feature-card { display: flex; flex-direction: column; align-items: flex-start; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #options .feature-card > img { width: 3.6rem; height: 3.6rem; margin-bottom: .95rem; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #options .feature-card > a { margin-top: auto; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #faq .faq { max-width: none; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #faq summary { font-size: clamp(1.05rem, 1.35vw, 1.2rem); min-height: 3.75rem; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #faq details > div { max-width: 75ch; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go { padding-block: clamp(2rem, 5vw, 4rem); background: var(--white); }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go > .wrap {
|
||||||
|
position: relative;
|
||||||
|
padding: clamp(1.5rem, 5vw, 4.5rem);
|
||||||
|
padding-right: clamp(11rem, 29vw, 23rem);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
background: radial-gradient(ellipse at 88% 110%, #264b9a 0, transparent 59%), #132443;
|
||||||
|
color: var(--white);
|
||||||
|
min-height: 16rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .section-heading { margin-bottom: .8rem; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .contact-panel { display: block; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .contact-panel p { color: #d9e8ff; max-width: 40ch; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .contact-panel img {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: clamp(1.5rem, 6vw, 6rem);
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: clamp(8rem, 13vw, 12rem);
|
||||||
|
padding: .5rem;
|
||||||
|
border: 0;
|
||||||
|
border-radius: .85rem;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .button { color: #142956; background: #eef4ff; border-color: #eef4ff; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #terms { padding-block: 1.4rem 2.5rem; border-top: 0; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #terms .section-heading { margin-bottom: .35rem; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #terms h2 { font-size: .95rem; letter-spacing: 0; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #terms .rich { font-size: .875rem; color: var(--muted); }
|
||||||
|
|
||||||
|
@media (max-width: 62rem) {
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #materials .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||||
|
}
|
||||||
|
@media (max-width: 44rem) {
|
||||||
|
.catalog-grid, #main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #materials .feature-grid { grid-template-columns: 1fr; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go > .wrap { padding: 1.55rem; min-height: 0; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .contact-panel { display: flex; gap: 1rem; }
|
||||||
|
#main-content:has(> :is(.hero-sc, .hero-shnu-sc)) #go .contact-panel img { position: static; transform: none; width: 7rem; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-cursor {
|
||||||
|
display: inline-block;
|
||||||
|
width: .52em;
|
||||||
|
margin-inline-start: .08em;
|
||||||
|
font-family: var(--mono);
|
||||||
|
font-size: .7em;
|
||||||
|
animation: home-cursor-blink 1.1s steps(1, end) 5;
|
||||||
|
}
|
||||||
|
@keyframes home-cursor-blink { 50% { opacity: 0; } }
|
||||||
|
|
||||||
|
.home-pipe-flow {
|
||||||
|
position: absolute;
|
||||||
|
inset: clamp(.45rem, 1.8vw, 1.7rem);
|
||||||
|
width: calc(100% - 2 * clamp(.45rem, 1.8vw, 1.7rem));
|
||||||
|
height: calc(100% - 2 * clamp(.45rem, 1.8vw, 1.7rem));
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.home-pipe-route { opacity: 0; animation: pipe-visibility 7s linear 2 both; }
|
||||||
|
.home-pipe-route use {
|
||||||
|
fill: none;
|
||||||
|
stroke: #2985fa;
|
||||||
|
stroke-width: 3;
|
||||||
|
stroke-linecap: round;
|
||||||
|
stroke-dasharray: 17 110;
|
||||||
|
stroke-dashoffset: 19;
|
||||||
|
opacity: .48;
|
||||||
|
animation: pipe-travel 7s linear 2 both;
|
||||||
|
}
|
||||||
|
.home-pipe-route use + use { stroke: #ecffff; stroke-width: 1.3; stroke-dasharray: 11 116; opacity: .95; }
|
||||||
|
.home-pipe-route:nth-of-type(2) { --pipe-delay: .85s; }
|
||||||
|
.home-pipe-route:nth-of-type(3) { --pipe-delay: 2.35s; }
|
||||||
|
.home-pipe-route:nth-of-type(4) { --pipe-delay: 3.2s; }
|
||||||
|
.home-pipe-route, .home-pipe-route use { animation-delay: var(--pipe-delay, 0s); }
|
||||||
|
@keyframes pipe-travel { 0%, 6% { stroke-dashoffset: 19; } 45%, 100% { stroke-dashoffset: -104; } }
|
||||||
|
@keyframes pipe-visibility { 0%, 6%, 45%, 100% { opacity: 0; } 13%, 37% { opacity: 1; } }
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.home-cursor { animation: none; }
|
||||||
|
.home-pipe-flow { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-company .site-address { margin: .25rem 0 0; color: var(--muted); max-width: 26rem; font-style: italic; }
|
||||||
|
|
||||||
|
.hero-home .hero-visual.app-frame {
|
||||||
|
isolation: isolate;
|
||||||
|
border: 1px solid #cad9f6;
|
||||||
|
border-radius: 1.8rem;
|
||||||
|
background: radial-gradient(circle, #a9bce9 1px, transparent 1.3px) 0 0 / 20px 20px, #eaf0fd;
|
||||||
|
padding: clamp(.45rem, 1.8vw, 1.7rem);
|
||||||
|
box-shadow: 0 22px 85px -44px #204dba65;
|
||||||
|
}
|
||||||
|
.hero-home .hero-visual.app-frame img {
|
||||||
|
aspect-ratio: 4 / 3;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 1.15rem;
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
}
|
||||||
|
.hero-home ~ #about {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
isolation: isolate;
|
||||||
|
color: white;
|
||||||
|
background: var(--navy);
|
||||||
|
}
|
||||||
|
.hero-home ~ #about::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
z-index: -1;
|
||||||
|
inset: 0;
|
||||||
|
background: repeating-radial-gradient(circle at 90% 72%, transparent 0 33px, #5e8ff822 34px 35px, transparent 36px 60px),
|
||||||
|
linear-gradient(135deg, #111f3b, #142b5f);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.hero-home ~ #about.moment-active::before { animation: iris 900ms ease-out both; }
|
||||||
|
.hero-home ~ #about .section-heading { margin-bottom: 1.45rem; }
|
||||||
|
.hero-home ~ #about .rich p { color: #dbe7ff; font-size: clamp(1.2rem, 2.4vw, 1.7rem); max-width: 50rem; }
|
||||||
|
.page-photo-credit { padding-bottom: 1.4rem; margin-bottom: 0; color: var(--muted); font-size: .875rem; }
|
||||||
|
|
||||||
|
@media (max-width: 44rem) {
|
||||||
|
.hero-home .hero-visual.app-frame { border-radius: 1.15rem; }
|
||||||
|
.hero-home .hero-visual.app-frame img { border-radius: .8rem; }
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 140 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1024 1024" width="50"><path d="M300.8 53.6h422.4v12.4H300.8z" fill="#4A555F"/><path d="M345.6 34m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M381.2 34m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M416.4 34m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M692.4 402.8H331.6c-20.4 0-36.8-16.4-36.8-36.8V36.8c0-6 1.6-12.4 4.4-17.6 1.6-3.2 4-6 6.4-8.4 1.6-1.6 3.6-3.2 5.6-4.4 2-1.2 4-2.4 6.4-3.6 4-2 8.8-2.8 14-2.8h361.2c4.8 0 9.6 0.8 14.4 2.8 2 0.8 4.4 2 6.4 3.2 2 1.6 4 2.8 5.6 4.4 2.4 2.4 4.8 5.2 6.4 8.4 2.8 5.2 4.4 11.6 4.4 17.6v329.2c-0.4 20.8-17.2 37.2-37.6 37.2zM331.6 12.4c-3.2 0-6.4 0.8-9.6 2-1.6 0.8-2.8 1.2-4 2.4-1.2 0.8-2.4 2-3.6 2.8-1.6 1.6-3.2 3.6-4.4 5.6-2 3.6-2.8 7.6-2.8 11.6v329.2c0 13.6 10.8 24.4 24.4 24.4h361.2c13.6 0 24.4-10.8 24.4-24.4V36.8c0-4-0.8-8-2.8-11.6-1.2-2-2.4-4-4.4-5.6-1.2-1.2-2.4-2-3.6-3.2-1.2-0.8-2.8-1.6-4-2-3.2-1.2-6.4-2-9.6-2H331.6z" fill="#4A555F"/><path d="M338.8 110.8h343.6v155.6H338.8z" fill="#FFD552"/><path d="M25.2 674.8h422.4v12.4H25.2z" fill="#4A555F"/><path d="M70 655.2m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M105.6 655.2m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M141.2 655.2m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M417.2 1024H56c-20.4 0-36.8-16.4-36.8-36.8v-329.2c0-6 1.6-12.4 4.4-17.6 1.6-3.2 4-6 6.4-8.4 1.6-1.6 3.2-3.2 5.6-4.4 2-1.2 4-2.4 6.4-3.6 4.4-2 9.6-2.8 14.4-2.8h361.2c4.8 0 9.6 0.8 14.4 2.8 2 0.8 4.4 2 6.4 3.2 2 1.6 4 2.8 5.6 4.4 2.4 2.4 4.8 5.2 6.4 8.4 2.8 5.2 4.4 11.6 4.4 17.6v329.2c-0.8 20.8-17.6 37.2-37.6 37.2zM56 633.6c-3.2 0-6.4 0.8-9.6 2-1.6 0.8-2.8 1.2-4 2.4-1.2 0.8-2.4 2-3.6 2.8-1.6 1.6-3.2 3.6-4.4 5.6-2 3.6-2.8 7.6-2.8 11.6v329.2c0 13.6 10.8 24.4 24.4 24.4h361.2c13.6 0 24.4-10.8 24.4-24.4v-329.2c0-4-0.8-8-2.8-11.6-1.2-2-2.4-4-4.4-5.6-1.2-1.2-2.4-2-3.6-3.2-1.2-0.8-2.8-1.6-4-2-3.2-1.2-6.4-2-9.6-2H56z" fill="#4A555F"/><path d="M63.6 732h195.2v102.8H63.6z" fill="#FFD552"/><path d="M576.4 674.8h422.4v12.4H576.4z" fill="#4A555F"/><path d="M621.2 655.2m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M656.8 655.2m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M692 655.2m-9.2 0a9.2 9.2 0 1 0 18.4 0 9.2 9.2 0 1 0-18.4 0Z" fill="#4A555F"/><path d="M968 1024h-361.2c-20.4 0-36.8-16.4-36.8-36.8v-329.2c0-6 1.6-12.4 4.4-17.6 1.6-3.2 4-6 6.4-8.4 1.6-1.6 3.2-3.2 5.6-4.4 2-1.2 4-2.4 6.4-3.6 4.4-2 9.6-2.8 14.4-2.8h361.2c4.8 0 9.6 0.8 14.4 2.8 2 0.8 4.4 2 6.4 3.2 2 1.6 4 2.8 5.6 4.4 2.4 2.4 4.8 5.2 6.4 8.4 2.8 5.2 4.4 11.6 4.4 17.6v329.2c-0.8 20.8-17.2 37.2-37.6 37.2z m-361.2-390.4c-3.2 0-6.4 0.8-9.6 2-1.6 0.8-2.8 1.2-4 2.4-1.2 0.8-2.4 2-3.6 2.8-1.6 1.6-3.2 3.6-4.4 5.6-2 3.6-2.8 7.6-2.8 11.6v329.2c0 13.6 10.8 24.4 24.4 24.4H968c13.6 0 24.4-10.8 24.4-24.4v-329.2c0-4-0.8-8-2.8-11.6-1.2-2-2.4-4-4.4-5.6-1.2-1.2-2.4-2-3.6-3.2-1.2-0.8-2.8-1.6-4-2-3.2-1.2-6.4-2-9.6-2h-361.2z" fill="#4A555F"/><path d="M614.4 732.8h186.8V964h-186.8z" fill="#F68F6F"/><path d="M795.6 519.2h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0H684v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-25.2 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0H460v-12.4h12.4v12.4z m-25.2 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0H336v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z m-25.2 0h-12.4v-12.4h12.4v12.4z m-24.8 0h-12.4v-12.4h12.4v12.4z" fill="#4A555F"/><path d="M796 594.8h-12.4v-12.4h12.4v12.4z m0-24.8h-12.4v-12.4h12.4v12.4z m0-24.8h-12.4v-12.4h12.4v12.4z" fill="#4A555F"/><path d="M522.8 490.8h-12.4v-12.4h12.4v12.4z m0-24.8h-12.4v-12.4h12.4v12.4z m0-24.8h-12.4v-12.4h12.4v12.4z" fill="#4A555F"/><path d="M249.2 594h-12.4v-12.4h12.4v12.4z m0-24.8h-12.4v-12.4h12.4v12.4z m0-24.8h-12.4V532h12.4v12.4z" fill="#4A555F"/><path d="M338.8 287.6h343.6V300H338.8z" fill="#4A555F"/><path d="M338.8 327.2h343.6v12.4H338.8z" fill="#4A555F"/><path d="M286 732.8H404v12.4H286z" fill="#4A555F"/><path d="M286 776.8H404v12.4H286z" fill="#4A555F"/><path d="M286 820.4H404v12.4H286z" fill="#4A555F"/><path d="M63.6 869.2h340.8v87.6H63.6z" fill="#71CDE1"/><path d="M831.2 732.8H956v12.4h-124.8z" fill="#4A555F"/><path d="M831.2 776.8H956v12.4h-124.8z" fill="#4A555F"/><path d="M831.2 820.4H956v12.4h-124.8z" fill="#4A555F"/><path d="M831.2 864H956v12.4h-124.8z" fill="#4A555F"/><path d="M831.2 908H956v12.4h-124.8z" fill="#4A555F"/><path d="M831.2 951.6H956v12.4h-124.8z" fill="#4A555F"/></svg>
|
||||||
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1024 1024" width="50"><path d="M311.224 428.616V40.96C186.696 93.99 87.406 195.29 36.936 321.096l274.286 274.286 0.002-166.766z" fill="#AFE164"/><path d="M428.616 311.22L702.904 36.936C643.84 13.164 579.474 0 512 0c-71.314 0-139.154 14.628-200.776 40.96v387.656L428.616 311.22z" fill="#D7E664"/><path d="M983.04 311.22H595.384l117.394 117.396 274.286 274.286C1010.836 643.84 1024 579.474 1024 512c0-71.314-14.628-139.154-40.96-200.78z" fill="#FFAA64"/><path d="M712.776 595.384V983.04c124.526-53.03 223.816-154.33 274.286-280.136L712.776 428.616v166.768z" fill="#FF6469"/><path d="M595.384 712.776L321.096 987.064C380.16 1010.834 444.526 1024 512 1024c71.316 0 139.154-14.628 200.776-40.96V595.384L595.384 712.776z" fill="#C3B4FA"/><path d="M428.616 712.776H40.96c53.03 124.526 154.33 223.816 280.136 274.286l274.286-274.286H428.616z" fill="#7DD2F0"/><path d="M311.224 595.384L36.936 321.096C13.164 380.16 0 444.526 0 512c0 71.314 14.628 139.154 40.96 200.776h387.656L311.224 595.384z" fill="#7DE6C3"/><path d="M595.384 311.22H983.04C930.01 186.696 828.71 87.404 702.904 36.936L428.616 311.22h166.768z" fill="#FFE669"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 220 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,5 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" width="72" height="72">
|
||||||
|
<rect width="72" height="72" rx="19" fill="#fff1e0"/>
|
||||||
|
<path d="M36 18c5 5 12 7 17 8v10c0 9-8 15-17 19-9-4-17-10-17-19V26c5-1 12-3 17-8Z" fill="#ffdab0" stroke="#a85410" stroke-linejoin="round" stroke-width="2.5"/>
|
||||||
|
<path d="m29 36 5 5 9-10" fill="none" stroke="#a85410" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 431 B |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,23 @@
|
|||||||
|
(() => {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const homeHero = document.querySelector('#main-content > .hero-home');
|
||||||
|
const homeTitle = homeHero?.querySelector('.hero-copy h1');
|
||||||
|
if (homeTitle) {
|
||||||
|
const lastLine = homeTitle.querySelector('.hero-accent') || homeTitle.querySelector('.hero-heading-primary') || homeTitle;
|
||||||
|
const cursor = document.createElement('span');
|
||||||
|
cursor.className = 'home-cursor';
|
||||||
|
cursor.setAttribute('aria-hidden', 'true');
|
||||||
|
cursor.textContent = '_';
|
||||||
|
// A word joiner prevents a narrow line from wrapping just the cursor.
|
||||||
|
lastLine.append('\u2060', cursor);
|
||||||
|
}
|
||||||
|
|
||||||
|
const homeImage = homeHero?.querySelector('.hero-visual > img');
|
||||||
|
if (homeImage && new URL(homeImage.src).pathname === "\/assets\/uploads\/a8e01ecf1e3d8932fc1f5a76297d3722.webp") {
|
||||||
|
homeImage.insertAdjacentHTML('afterend', "<svg class=\"home-pipe-flow\" viewBox=\"0 0 640 480\" aria-hidden=\"true\" focusable=\"false\">\n <defs>\n <path id=\"hero-pipe-tower\" pathLength=\"100\" d=\"M174 347 241 312 Q246 310 246 305 L246 299 Q246 295 252 293 L273 282\"\/>\n <path id=\"hero-pipe-disk\" pathLength=\"100\" d=\"M409 282 428 293 Q433 296 433 300 L433 304 Q433 307 438 309 L500 337\"\/>\n <path id=\"hero-pipe-node\" pathLength=\"100\" d=\"M119 201 125 205 Q129 207 129 212 L129 214 Q130 217 134 219 L190 243\"\/>\n <path id=\"hero-pipe-chart\" pathLength=\"100\" d=\"M443 226 471 213 Q478 208 483 209 L488 207 Q492 205 492 200 L492 182\"\/>\n <\/defs>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-tower\"\/><use href=\"#hero-pipe-tower\"\/><\/g>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-disk\"\/><use href=\"#hero-pipe-disk\"\/><\/g>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-node\"\/><use href=\"#hero-pipe-node\"\/><\/g>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-chart\"\/><use href=\"#hero-pipe-chart\"\/><\/g>\n<\/svg>\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
document.querySelector('#main-content > .hero-home ~ #about')?.setAttribute('data-moment', 'iris-opens');
|
||||||
|
|
||||||
|
})();
|
||||||
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 82 KiB |
@@ -0,0 +1,5 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" width="72" height="72">
|
||||||
|
<rect width="72" height="72" rx="19" fill="#e6f5f1"/>
|
||||||
|
<rect x="16.5" y="20.5" width="39" height="31" rx="5" fill="#bfe4da" stroke="#0c775f" stroke-width="2.5"/>
|
||||||
|
<path d="m30 31-6 5 6 5m12-10 6 5-6 5m-4-12-4 14" fill="none" stroke="#0c775f" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 404 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 705 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,21 @@
|
|||||||
|
(() => {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const homeHero = document.querySelector('#main-content > .hero-home');
|
||||||
|
const homeTitle = homeHero?.querySelector('.hero-copy h1');
|
||||||
|
if (homeTitle) {
|
||||||
|
const cursor = document.createElement('span');
|
||||||
|
cursor.className = 'home-cursor';
|
||||||
|
cursor.setAttribute('aria-hidden', 'true');
|
||||||
|
cursor.textContent = '_';
|
||||||
|
homeTitle.append(cursor);
|
||||||
|
}
|
||||||
|
|
||||||
|
const homeImage = homeHero?.querySelector('.hero-visual > img');
|
||||||
|
if (homeImage && new URL(homeImage.src).pathname === "\/assets\/uploads\/a8e01ecf1e3d8932fc1f5a76297d3722.webp") {
|
||||||
|
homeImage.insertAdjacentHTML('afterend', "<svg class=\"home-pipe-flow\" viewBox=\"0 0 640 480\" aria-hidden=\"true\" focusable=\"false\">\n <defs>\n <path id=\"hero-pipe-tower\" pathLength=\"100\" d=\"M174 347 241 312 Q246 310 246 305 L246 299 Q246 295 252 293 L273 282\"\/>\n <path id=\"hero-pipe-disk\" pathLength=\"100\" d=\"M409 282 428 293 Q433 296 433 300 L433 304 Q433 307 438 309 L500 337\"\/>\n <path id=\"hero-pipe-node\" pathLength=\"100\" d=\"M119 201 125 205 Q129 207 129 212 L129 214 Q130 217 134 219 L190 243\"\/>\n <path id=\"hero-pipe-chart\" pathLength=\"100\" d=\"M443 226 471 213 Q478 208 483 209 L488 207 Q492 205 492 200 L492 182\"\/>\n <\/defs>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-tower\"\/><use href=\"#hero-pipe-tower\"\/><\/g>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-disk\"\/><use href=\"#hero-pipe-disk\"\/><\/g>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-node\"\/><use href=\"#hero-pipe-node\"\/><\/g>\n <g class=\"home-pipe-route\"><use href=\"#hero-pipe-chart\"\/><use href=\"#hero-pipe-chart\"\/><\/g>\n<\/svg>\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
document.querySelector('#main-content > .hero-home ~ #about')?.setAttribute('data-moment', 'iris-opens');
|
||||||
|
|
||||||
|
})();
|
||||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 81 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1048 1024" width="50"><path d="M387.121951 636.878049m-387.121951 0a387.121951 387.121951 0 1 0 774.243902 0 387.121951 387.121951 0 1 0-774.243902 0Z" fill="#FFEFDB"/><path d="M899.121951 574.439024v224.780488H249.756098V274.731707h212.292682l87.414635 69.931708V0h499.512195v574.439024H899.121951zM437.073171 324.682927H299.707317v424.585366h549.463415V424.585366H561.95122zM999.02439 49.95122H599.414634v324.682926h299.707317v149.853659h99.902439V49.95122z" fill="#040405"/><path d="M674.341463 299.707317v-49.951219h249.756098v49.951219H674.341463z m0-149.853658h249.756098v49.951219H674.341463v-49.951219z" fill="#FF9E1F"/></svg>
|
||||||
|
After Width: | Height: | Size: 699 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1024 1024" width="50"><path d="M109.312 228.736H765.44c30.208 0 54.72 24.512 54.72 54.656v468.16H54.656V283.392c0-30.144 24.512-54.656 54.656-54.656z" fill="#A4ADC5"/><path d="M0 809.6m27.328 0l820.096 0q27.328 0 27.328 27.328l0 61.504q0 27.328-27.328 27.328l-820.096 0q-27.328 0-27.328-27.328l0-61.504q0-27.328 27.328-27.328Z" fill="#A4ADC5"/><path d="M328 83.52m54.656 0l546.752 0q54.656 0 54.656 54.656l0 413.504q0 54.656-54.656 54.656l-546.752 0q-54.656 0-54.656-54.656l0-413.504q0-54.656 54.656-54.656Z" fill="#08153A"/><path d="M536.96 244.16a25.6 25.6 0 0 1 4.224 32l-3.2 4.16-60.8 64.576 60.8 64.64a25.6 25.6 0 0 1 2.304 32.256l-3.392 3.904A25.6 25.6 0 0 1 504.64 448l-3.904-3.392-69.12-73.344a38.4 38.4 0 0 1-3.712-48l3.776-4.672 69.056-73.344a25.6 25.6 0 0 1 36.16-1.088zM775.168 244.16a25.6 25.6 0 0 0-4.224 32l3.2 4.16 60.8 64.576-60.8 64.64a25.6 25.6 0 0 0-2.368 32.256l3.392 3.904a25.6 25.6 0 0 0 32.256 2.304l3.968-3.392 69.056-73.344a38.4 38.4 0 0 0 3.712-48l-3.712-4.672-69.12-73.344a25.6 25.6 0 0 0-36.16-1.088zM677.952 243.712a25.6 25.6 0 0 1 47.04 19.648l-2.048 4.8-88.832 163.456a25.6 25.6 0 0 1-46.976-19.648l1.984-4.8 88.832-163.456z" fill="#FFFFFF"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 74 KiB |
@@ -0,0 +1,35 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 3840 1280">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<rect x="160" y="96" fill="#FFFFFF" width="1088" height="1088"/>
|
||||||
|
<path fill="#333333" d="M1216,128v1024H192V128H1216 M1280,64H128v1152h1152V64L1280,64z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#333333" d="M482.46,526h152l-12.92,76h-152l-53.96,304h-76l53.96-304h-76l12.92-76h76l13.68-76h76L482.46,526z M509.06,374h152l-12.92,76h-152L509.06,374z"/>
|
||||||
|
<path fill="#333333" d="M710.46,526h76l-53.2,304h-76L710.46,526z M1023.58,906h-304l13.68-76h76l26.6-152h76l-26.6,152h76 l53.2-304h76L1023.58,906z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path fill="#333333" d="M1702.8,1054.4v-28h26.4c5.06,0,10.06-0.87,15-2.6c4.93-1.74,9.33-4.47,13.2-8.2c3.86-3.74,6.86-8.07,9-13 c2.13-4.94,3.6-9.8,4.4-14.6l29.6-180.8H1746v-28h59.2l7.2-42.8c0.8-5.6,2.13-11.13,4-16.6c1.86-5.46,4.4-10.73,7.6-15.8 c3.2-5.06,7.13-9.6,11.8-13.6c4.66-4,9.66-7.2,15-9.6c5.33-2.4,10.86-4.06,16.6-5c5.73-0.93,11.26-1.4,16.6-1.4h26.4l0.4,28h-26.4 c-5.07,0-10.07,0.87-15,2.6c-4.94,1.74-9.4,4.47-13.4,8.2c-4,3.74-7,8.07-9,13c-2,4.94-3.4,9.8-4.2,14.6l-6.4,38.8h54.4v27.6 h-59.2l-30.4,185.2c-1.07,5.6-2.47,11.13-4.2,16.6c-1.74,5.46-4.27,10.73-7.6,15.8c-3.34,5.06-7.34,9.6-12,13.6 c-4.67,4-9.67,7.2-15,9.6c-5.34,2.4-10.87,4.06-16.6,5c-5.74,0.93-11.27,1.4-16.6,1.4H1702.8z"/>
|
||||||
|
<path fill="#333333" d="M1999.2,971.6c-8,0-15.8-0.74-23.4-2.2c-7.6-1.46-14.54-4.13-20.8-8c-6.27-3.86-11.6-8.8-16-14.8 c-4.4-6-7.67-12.6-9.8-19.8c-2.14-7.2-3.14-14.73-3-22.6c0.13-7.86,0.86-15.66,2.2-23.4l8-48c1.06-6.66,2.66-13.26,4.8-19.8 c2.13-6.53,5.06-12.8,8.8-18.8c3.73-6,8.26-11.46,13.6-16.4c5.33-4.93,11.2-9,17.6-12.2s12.93-5.4,19.6-6.6 c6.66-1.2,13.33-1.8,20-1.8c6.66,0,13.2,0.54,19.6,1.6c6.4,1.07,12.33,2.94,17.8,5.6c5.46,2.67,10.46,6.14,15,10.4 c4.53,4.27,8.06,9.2,10.6,14.8c2.53,5.6,4.26,11.6,5.2,18c0.93,6.4,0.86,12.94-0.2,19.6c-0.8,5.34-2.54,10.67-5.2,16 c-2.67,5.34-6,10.2-10,14.6c-4,4.4-8.6,8.14-13.8,11.2c-5.2,3.07-10.54,5.54-16,7.4c-5.47,1.87-11,3.07-16.6,3.6 c-5.6,0.54-11.2,0.8-16.8,0.8h-14.8c-5.87-0.26-11.74-0.6-17.6-1c-5.87-0.4-11.87-1.13-18-2.2l-1.2,7.6 c-0.8,4.8-1.27,9.6-1.4,14.4c-0.14,4.8,0.33,9.47,1.4,14c1.06,4.54,2.8,8.8,5.2,12.8c2.4,4,5.33,7.34,8.8,10 c3.46,2.67,7.53,4.54,12.2,5.6c4.66,1.07,9.4,1.6,14.2,1.6c5.06,0,10.13-0.6,15.2-1.8c5.06-1.2,9.93-3.2,14.6-6 c4.66-2.8,8.86-6.2,12.6-10.2c3.73-4,6.8-8.4,9.2-13.2l26,12.8c-4,6.94-8.74,13.47-14.2,19.6c-5.47,6.14-11.67,11.27-18.6,15.4 c-6.94,4.14-14.27,7.07-22,8.8C2014.26,970.73,2006.66,971.6,1999.2,971.6z M2015.6,854c4.53,0,9.13-0.53,13.8-1.6 c4.66-1.06,9.06-3,13.2-5.8c4.13-2.8,7.53-6.33,10.2-10.6c2.66-4.26,4.4-8.66,5.2-13.2c0.8-5.33,0.53-10.53-0.8-15.6 c-1.34-5.06-3.8-9.26-7.4-12.6c-3.6-3.33-7.94-5.73-13-7.2c-5.07-1.46-10.27-2.2-15.6-2.2c-4.27,0-8.74,0.47-13.4,1.4 c-4.67,0.94-9,2.54-13,4.8c-4,2.27-7.67,5.2-11,8.8c-3.34,3.6-6.14,7.4-8.4,11.4c-2.27,4-4.07,8.2-5.4,12.6 c-1.34,4.4-2.4,8.74-3.2,13l-2,12.4c4,0.8,8.13,1.4,12.4,1.8c4.26,0.4,8.6,0.67,13,0.8c4.4,0.14,8.66,0.47,12.8,1 C2007.13,853.74,2011.33,854,2015.6,854z"/>
|
||||||
|
<path fill="#333333" d="M2175.2,971.6c-6.94,0-13.54-1.14-19.8-3.4c-6.27-2.26-11.47-5.8-15.6-10.6c-4.14-4.8-7.27-10.33-9.4-16.6 c-2.14-6.26-3.54-12.73-4.2-19.4c-0.67-6.66-0.74-13.4-0.2-20.2c0.53-6.8,1.33-13.66,2.4-20.6l8-48c1.06-6.13,2.4-12.26,4-18.4 c1.6-6.13,3.93-12.06,7-17.8c3.06-5.73,6.8-11.13,11.2-16.2c4.4-5.06,9.26-9.4,14.6-13c5.33-3.6,11.13-6.2,17.4-7.8 c6.26-1.6,12.46-2.4,18.6-2.4c6.4,0,12.6,0.94,18.6,2.8c6,1.87,11.13,4.87,15.4,9c4.26,4.14,7.6,8.94,10,14.4 c2.4,5.47,4.13,11.27,5.2,17.4l16.4-98.4h-16.4l-0.4-28h52.4L2268,931.2c-0.27,1.6-0.27,3.2,0,4.8c0.26,1.6,0.93,3,2,4.2 c1.06,1.2,2.33,2.07,3.8,2.6c1.46,0.54,3,0.8,4.6,0.8h6v28h-10.8c-5.34,0-10.47-0.67-15.4-2c-4.94-1.33-9.27-3.6-13-6.8 c-3.74-3.2-6.34-7.26-7.8-12.2c-1.47-4.93-1.94-10.06-1.4-15.4c-2.94,5.34-6.67,10.4-11.2,15.2c-4.54,4.8-9.47,8.8-14.8,12 c-5.34,3.2-11,5.54-17,7S2181.06,971.6,2175.2,971.6z M2192,943.6c6.13,0,12.33-1.13,18.6-3.4c6.26-2.26,11.73-5.8,16.4-10.6 c4.66-4.8,8.2-10.2,10.6-16.2c2.4-6,4.13-12.06,5.2-18.2l8-48c0.8-4.8,1.33-9.6,1.6-14.4c0.26-4.8,0.06-9.46-0.6-14 c-0.67-4.53-1.74-8.93-3.2-13.2c-1.47-4.26-3.67-8-6.6-11.2c-2.94-3.2-6.6-5.53-11-7c-4.4-1.46-9-2.2-13.8-2.2 c-6.14,0-12.4,1.4-18.8,4.2c-6.4,2.8-11.8,6.8-16.2,12s-7.8,10.87-10.2,17c-2.4,6.14-4.14,12.4-5.2,18.8l-8,48 c-0.8,4.54-1.27,9.07-1.4,13.6c-0.14,4.54,0.06,9,0.6,13.4c0.53,4.4,1.6,8.6,3.2,12.6s3.93,7.47,7,10.4 c3.06,2.94,6.66,5.07,10.8,6.4C2183.13,942.94,2187.46,943.6,2192,943.6z"/>
|
||||||
|
<path fill="#333333" d="M2399.2,971.6c-8,0-15.8-0.74-23.4-2.2c-7.6-1.46-14.54-4.13-20.8-8c-6.27-3.86-11.6-8.8-16-14.8 c-4.4-6-7.67-12.6-9.8-19.8c-2.14-7.2-3.14-14.73-3-22.6c0.13-7.86,0.86-15.66,2.2-23.4l8-48c1.06-6.66,2.66-13.26,4.8-19.8 c2.13-6.53,5.06-12.8,8.8-18.8c3.73-6,8.26-11.46,13.6-16.4c5.33-4.93,11.2-9,17.6-12.2s12.93-5.4,19.6-6.6 c6.66-1.2,13.33-1.8,20-1.8c6.66,0,13.2,0.54,19.6,1.6c6.4,1.07,12.33,2.94,17.8,5.6c5.46,2.67,10.46,6.14,15,10.4 c4.53,4.27,8.06,9.2,10.6,14.8c2.53,5.6,4.26,11.6,5.2,18c0.93,6.4,0.86,12.94-0.2,19.6c-0.8,5.34-2.54,10.67-5.2,16 c-2.67,5.34-6,10.2-10,14.6c-4,4.4-8.6,8.14-13.8,11.2c-5.2,3.07-10.54,5.54-16,7.4c-5.47,1.87-11,3.07-16.6,3.6 c-5.6,0.54-11.2,0.8-16.8,0.8h-14.8c-5.87-0.26-11.74-0.6-17.6-1c-5.87-0.4-11.87-1.13-18-2.2l-1.2,7.6 c-0.8,4.8-1.27,9.6-1.4,14.4c-0.14,4.8,0.33,9.47,1.4,14c1.06,4.54,2.8,8.8,5.2,12.8c2.4,4,5.33,7.34,8.8,10 c3.46,2.67,7.53,4.54,12.2,5.6c4.66,1.07,9.4,1.6,14.2,1.6c5.06,0,10.13-0.6,15.2-1.8c5.06-1.2,9.93-3.2,14.6-6 c4.66-2.8,8.86-6.2,12.6-10.2c3.73-4,6.8-8.4,9.2-13.2l26,12.8c-4,6.94-8.74,13.47-14.2,19.6c-5.47,6.14-11.67,11.27-18.6,15.4 c-6.94,4.14-14.27,7.07-22,8.8C2414.26,970.73,2406.66,971.6,2399.2,971.6z M2415.6,854c4.53,0,9.13-0.53,13.8-1.6 c4.66-1.06,9.06-3,13.2-5.8c4.13-2.8,7.53-6.33,10.2-10.6c2.66-4.26,4.4-8.66,5.2-13.2c0.8-5.33,0.53-10.53-0.8-15.6 c-1.34-5.06-3.8-9.26-7.4-12.6c-3.6-3.33-7.94-5.73-13-7.2c-5.07-1.46-10.27-2.2-15.6-2.2c-4.27,0-8.74,0.47-13.4,1.4 c-4.67,0.94-9,2.54-13,4.8c-4,2.27-7.67,5.2-11,8.8c-3.34,3.6-6.14,7.4-8.4,11.4c-2.27,4-4.07,8.2-5.4,12.6 c-1.34,4.4-2.4,8.74-3.2,13l-2,12.4c4,0.8,8.13,1.4,12.4,1.8c4.26,0.4,8.6,0.67,13,0.8c4.4,0.14,8.66,0.47,12.8,1 C2407.13,853.74,2411.33,854,2415.6,854z"/>
|
||||||
|
<path fill="#333333" d="M2541.2,968.4l29.6-180h-23.6v-28h59.6L2600,800c2.93-5.6,6.33-11.06,10.2-16.4c3.86-5.33,8.2-10,13-14 s10.26-7.06,16.4-9.2c6.13-2.13,12.13-3.2,18-3.2c4.8,0,9.4,0.67,13.8,2c4.4,1.34,8.26,3.54,11.6,6.6 c3.33,3.07,5.93,6.67,7.8,10.8c1.86,4.14,3.06,8.54,3.6,13.2c0.53,4.67,0.6,9.4,0.2,14.2c-0.4,4.8-1,9.6-1.8,14.4h-31.2 c0.53-3.73,0.86-7.4,1-11c0.13-3.6-0.27-7.13-1.2-10.6c-0.94-3.46-2.74-6.26-5.4-8.4c-2.67-2.13-5.87-3.2-9.6-3.2 c-5.07,0-10.14,0.87-15.2,2.6c-5.07,1.74-9.6,4.34-13.6,7.8c-4,3.47-7.4,7.4-10.2,11.8s-5.2,9-7.2,13.8s-3.67,9.67-5,14.6 c-1.34,4.94-2.4,9.8-3.2,14.6l-19.6,118H2541.2z"/>
|
||||||
|
<path fill="#333333" d="M2775.2,971.6c-6.94,0-13.54-1.14-19.8-3.4c-6.27-2.26-11.47-5.8-15.6-10.6c-4.14-4.8-7.27-10.33-9.4-16.6 c-2.14-6.26-3.54-12.73-4.2-19.4c-0.67-6.66-0.74-13.4-0.2-20.2c0.53-6.8,1.33-13.66,2.4-20.6l8-48c1.06-6.13,2.4-12.26,4-18.4 c1.6-6.13,3.93-12.06,7-17.8c3.06-5.73,6.8-11.13,11.2-16.2c4.4-5.06,9.26-9.4,14.6-13c5.33-3.6,11.13-6.2,17.4-7.8 c6.26-1.6,12.46-2.4,18.6-2.4c6.4,0,12.6,0.94,18.6,2.8c6,1.87,11.13,4.87,15.4,9c4.26,4.14,7.6,8.94,10,14.4 c2.4,5.47,4.13,11.27,5.2,17.4l6.8-40.4h31.2L2868,931.2c-0.27,1.6-0.27,3.2,0,4.8c0.26,1.6,0.93,3,2,4.2 c1.06,1.2,2.33,2.07,3.8,2.6c1.46,0.54,3,0.8,4.6,0.8h6v28h-10.8c-5.34,0-10.47-0.67-15.4-2c-4.94-1.33-9.27-3.6-13-6.8 c-3.74-3.2-6.34-7.26-7.8-12.2c-1.47-4.93-1.94-10.06-1.4-15.4c-2.94,5.34-6.67,10.4-11.2,15.2c-4.54,4.8-9.47,8.8-14.8,12 c-5.34,3.2-11,5.54-17,7S2781.06,971.6,2775.2,971.6z M2792,943.6c6.13,0,12.33-1.13,18.6-3.4c6.26-2.26,11.73-5.8,16.4-10.6 c4.66-4.8,8.2-10.2,10.6-16.2c2.4-6,4.13-12.06,5.2-18.2l8-48c0.8-4.8,1.33-9.6,1.6-14.4c0.26-4.8,0.06-9.46-0.6-14 c-0.67-4.53-1.74-8.93-3.2-13.2c-1.47-4.26-3.67-8-6.6-11.2c-2.94-3.2-6.6-5.53-11-7c-4.4-1.46-9-2.2-13.8-2.2 c-6.14,0-12.4,1.4-18.8,4.2c-6.4,2.8-11.8,6.8-16.2,12s-7.8,10.87-10.2,17c-2.4,6.14-4.14,12.4-5.2,18.8l-8,48 c-0.8,4.54-1.27,9.07-1.4,13.6c-0.14,4.54,0.06,9,0.6,13.4c0.53,4.4,1.6,8.6,3.2,12.6s3.93,7.47,7,10.4 c3.06,2.94,6.66,5.07,10.8,6.4C2783.13,942.94,2787.46,943.6,2792,943.6z"/>
|
||||||
|
<path fill="#333333" d="M3022,971.6c-6.4,0-12.74-0.74-19-2.2c-6.27-1.46-11.74-4-16.4-7.6c-4.67-3.6-8.6-8.06-11.8-13.4 c-3.2-5.33-5.47-11-6.8-17c-1.34-6-1.87-12.26-1.6-18.8c0.26-6.53,0.93-13,2-19.4l17.2-104.8h-36v-28h40.8l14-86h31.2l-14,86h68 v28h-72.8l-18,109.2c-0.54,3.47-0.87,6.94-1,10.4c-0.14,3.47-0.14,6.87,0,10.2c0.13,3.34,0.73,6.6,1.8,9.8 c1.06,3.2,2.66,6,4.8,8.4c2.13,2.4,4.73,4.2,7.8,5.4c3.06,1.2,6.33,1.8,9.8,1.8c4.8,0,9.53-1.2,14.2-3.6 c4.66-2.4,8.6-5.6,11.8-9.6s5.8-8.33,7.8-13c2-4.66,3.66-9.4,5-14.2l28.4,8c-1.34,5.07-3.07,10.07-5.2,15 c-2.14,4.94-4.74,9.74-7.8,14.4c-3.07,4.67-6.54,9-10.4,13c-3.87,4-8.2,7.4-13,10.2c-4.8,2.8-9.87,4.8-15.2,6 C3032.26,971,3027.06,971.6,3022,971.6z"/>
|
||||||
|
<path fill="#333333" d="M3228.8,971.6c-6.14,0-12.07-0.67-17.8-2c-5.74-1.33-10.94-3.66-15.6-7c-4.67-3.33-8.54-7.46-11.6-12.4 c-3.07-4.93-5.34-10.2-6.8-15.8c-1.47-5.6-2.07-11.46-1.8-17.6c0.26-6.13,0.93-12.26,2-18.4l18-110h-52.4v-28h88.8L3208,902.8 c-0.8,4.54-1.27,9.14-1.4,13.8c-0.14,4.67,0.6,9.07,2.2,13.2c1.6,4.14,4.2,7.47,7.8,10c3.6,2.54,7.8,3.8,12.6,3.8 c4.26,0,8.53-1.06,12.8-3.2c4.26-2.13,7.8-5,10.6-8.6c2.8-3.6,5.13-7.46,7-11.6c1.86-4.13,3.33-8.33,4.4-12.6l28.8,7.6 c-2.14,7.2-5,14.27-8.6,21.2c-3.6,6.94-8.2,13.14-13.8,18.6c-5.6,5.47-12.07,9.6-19.4,12.4 C3243.66,970.2,3236.26,971.6,3228.8,971.6z M3228.8,725.2c-4,0-7.8-0.66-11.4-2c-3.6-1.33-6.47-3.53-8.6-6.6 c-2.14-3.06-3.54-6.53-4.2-10.4c-0.67-3.86-0.74-7.8-0.2-11.8c0.53-2.66,1.53-5.33,3-8c1.46-2.66,3.33-4.86,5.6-6.6 c2.26-1.73,4.8-2.93,7.6-3.6c2.8-0.66,5.66-1,8.6-1c4,0,7.8,0.74,11.4,2.2c3.6,1.47,6.46,3.74,8.6,6.8 c2.13,3.07,3.6,6.54,4.4,10.4c0.8,3.87,0.8,7.8,0,11.8c-0.54,2.67-1.54,5.34-3,8c-1.47,2.67-3.34,4.87-5.6,6.6 c-2.27,1.74-4.8,2.87-7.6,3.4C3234.6,724.94,3231.73,725.2,3228.8,725.2z"/>
|
||||||
|
<path fill="#333333" d="M3393.2,971.6c-7.74,0-15.2-0.8-22.4-2.4c-7.2-1.6-13.67-4.46-19.4-8.6c-5.74-4.13-10.54-9.2-14.4-15.2 c-3.87-6-6.67-12.6-8.4-19.8c-1.74-7.2-2.54-14.6-2.4-22.2c0.13-7.6,0.86-15.13,2.2-22.6l8-48c1.06-6.66,2.66-13.26,4.8-19.8 c2.13-6.53,5.06-12.8,8.8-18.8c3.73-6,8.2-11.46,13.4-16.4c5.2-4.93,10.93-9,17.2-12.2c6.26-3.2,12.73-5.4,19.4-6.6 c6.66-1.2,13.33-1.8,20-1.8c7.73,0,15.2,0.8,22.4,2.4c7.2,1.6,13.73,4.47,19.6,8.6c5.86,4.14,10.73,9.2,14.6,15.2 c3.86,6,6.66,12.6,8.4,19.8c1.73,7.2,2.46,14.6,2.2,22.2c-0.27,7.6-0.94,15.14-2,22.6l-8,48c-1.07,6.67-2.74,13.27-5,19.8 c-2.27,6.54-5.2,12.8-8.8,18.8c-3.6,6-8,11.47-13.2,16.4c-5.2,4.94-10.94,9-17.2,12.2c-6.27,3.2-12.8,5.4-19.6,6.6 C3406.6,971,3399.86,971.6,3393.2,971.6z M3393.6,943.6c4.53,0,8.93-0.53,13.2-1.6c4.26-1.06,8.4-2.8,12.4-5.2 c4-2.4,7.66-5.33,11-8.8c3.33-3.46,6.06-7.2,8.2-11.2c2.13-4,3.86-8.13,5.2-12.4c1.33-4.26,2.26-8.53,2.8-12.8l8-48 c0.8-4.53,1.33-9.13,1.6-13.8c0.26-4.66,0-9.2-0.8-13.6c-0.8-4.4-2.07-8.6-3.8-12.6c-1.74-4-4.14-7.46-7.2-10.4 c-3.07-2.93-6.74-5-11-6.2c-4.27-1.2-8.67-1.8-13.2-1.8c-4.54,0-9,0.54-13.4,1.6c-4.4,1.07-8.6,2.8-12.6,5.2 c-4,2.4-7.6,5.34-10.8,8.8c-3.2,3.47-5.87,7.2-8,11.2c-2.14,4-3.87,8.14-5.2,12.4c-1.34,4.27-2.4,8.54-3.2,12.8l-8,48 c-0.8,4.54-1.27,9.14-1.4,13.8c-0.14,4.67,0.13,9.2,0.8,13.6c0.66,4.4,1.86,8.6,3.6,12.6c1.73,4,4.13,7.47,7.2,10.4 c3.06,2.94,6.8,5,11.2,6.2C3384.6,943,3389.06,943.6,3393.6,943.6z"/>
|
||||||
|
<path fill="#333333" d="M3517.2,968.4l29.6-180h-16.4v-28h52.4l-5.6,32.4c3.2-5.33,6.86-10.26,11-14.8c4.13-4.53,8.8-8.4,14-11.6 s10.73-5.53,16.6-7c5.86-1.46,11.6-2.2,17.2-2.2c6.93,0,13.46,1.2,19.6,3.6c6.13,2.4,11.2,6,15.2,10.8s7,10.34,9,16.6 c2,6.27,3.4,12.67,4.2,19.2c0.8,6.54,0.93,13.27,0.4,20.2c-0.54,6.94-1.34,13.74-2.4,20.4l-15.6,92.4h16.4l0.4,28h-52.4 l20.4-124.8c0.8-4.53,1.33-9.06,1.6-13.6c0.26-4.53,0.13-8.93-0.4-13.2c-0.54-4.26-1.54-8.4-3-12.4c-1.47-4-3.6-7.53-6.4-10.6 c-2.8-3.06-6.27-5.26-10.4-6.6c-4.14-1.33-8.47-2-13-2c-5.87,0-11.87,1.2-18,3.6c-6.14,2.4-11.4,6-15.8,10.8 c-4.4,4.8-7.8,10.2-10.2,16.2c-2.4,6-4,11.94-4.8,17.8l-22.4,134.8H3517.2z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#333333" d="M2317.2,550.4l29.6-180h-16.4v-28h52.4l-5.6,32.4c3.2-5.33,6.86-10.26,11-14.8c4.13-4.53,8.8-8.4,14-11.6 s10.73-5.53,16.6-7c5.86-1.46,11.6-2.2,17.2-2.2c6.93,0,13.46,1.2,19.6,3.6c6.13,2.4,11.2,6,15.2,10.8c4,4.8,7,10.34,9,16.6 c2,6.27,3.4,12.67,4.2,19.2c0.8,6.54,0.93,13.27,0.4,20.2c-0.54,6.94-1.34,13.74-2.4,20.4l-15.6,92.4h16.4l0.4,28h-52.4 l20.4-124.8c0.8-4.53,1.33-9.06,1.6-13.6c0.26-4.53,0.13-8.93-0.4-13.2c-0.54-4.26-1.54-8.4-3-12.4c-1.47-4-3.6-7.53-6.4-10.6 c-2.8-3.06-6.27-5.26-10.4-6.6c-4.14-1.33-8.47-2-13-2c-5.87,0-11.87,1.2-18,3.6c-6.14,2.4-11.4,6-15.8,10.8 c-4.4,4.8-7.8,10.2-10.2,16.2c-2.4,6-4,11.94-4.8,17.8l-22.4,134.8H2317.2z"/>
|
||||||
|
<path fill="#333333" d="M2599.2,553.6c-8,0-15.8-0.74-23.4-2.2c-7.6-1.46-14.54-4.13-20.8-8c-6.27-3.86-11.6-8.8-16-14.8 s-7.67-12.6-9.8-19.8c-2.14-7.2-3.14-14.73-3-22.6c0.13-7.86,0.86-15.66,2.2-23.4l8-48c1.06-6.66,2.66-13.26,4.8-19.8 c2.13-6.53,5.06-12.8,8.8-18.8c3.73-6,8.26-11.46,13.6-16.4c5.33-4.93,11.2-9,17.6-12.2c6.4-3.2,12.93-5.4,19.6-6.6 c6.66-1.2,13.33-1.8,20-1.8c6.66,0,13.2,0.54,19.6,1.6c6.4,1.07,12.33,2.94,17.8,5.6c5.46,2.67,10.46,6.14,15,10.4 c4.53,4.27,8.06,9.2,10.6,14.8c2.53,5.6,4.26,11.6,5.2,18c0.93,6.4,0.86,12.94-0.2,19.6c-0.8,5.34-2.54,10.67-5.2,16 c-2.67,5.34-6,10.2-10,14.6s-8.6,8.14-13.8,11.2c-5.2,3.07-10.54,5.54-16,7.4c-5.47,1.87-11,3.07-16.6,3.6 c-5.6,0.54-11.2,0.8-16.8,0.8h-14.8c-5.87-0.26-11.74-0.6-17.6-1c-5.87-0.4-11.87-1.13-18-2.2l-1.2,7.6 c-0.8,4.8-1.27,9.6-1.4,14.4c-0.14,4.8,0.33,9.47,1.4,14c1.06,4.54,2.8,8.8,5.2,12.8s5.33,7.34,8.8,10 c3.46,2.67,7.53,4.54,12.2,5.6c4.66,1.07,9.4,1.6,14.2,1.6c5.06,0,10.13-0.6,15.2-1.8c5.06-1.2,9.93-3.2,14.6-6 c4.66-2.8,8.86-6.2,12.6-10.2c3.73-4,6.8-8.4,9.2-13.2l26,12.8c-4,6.94-8.74,13.47-14.2,19.6c-5.47,6.14-11.67,11.27-18.6,15.4 c-6.94,4.14-14.27,7.07-22,8.8C2614.26,552.74,2606.66,553.6,2599.2,553.6z M2615.6,436c4.53,0,9.13-0.53,13.8-1.6 c4.66-1.06,9.06-3,13.2-5.8c4.13-2.8,7.53-6.33,10.2-10.6c2.66-4.26,4.4-8.66,5.2-13.2c0.8-5.33,0.53-10.53-0.8-15.6 c-1.34-5.06-3.8-9.26-7.4-12.6c-3.6-3.33-7.94-5.73-13-7.2c-5.07-1.46-10.27-2.2-15.6-2.2c-4.27,0-8.74,0.47-13.4,1.4 c-4.67,0.94-9,2.54-13,4.8c-4,2.27-7.67,5.2-11,8.8c-3.34,3.6-6.14,7.4-8.4,11.4c-2.27,4-4.07,8.2-5.4,12.6 c-1.34,4.4-2.4,8.74-3.2,13l-2,12.4c4,0.8,8.13,1.4,12.4,1.8c4.26,0.4,8.6,0.67,13,0.8c4.4,0.14,8.66,0.47,12.8,1 C2607.13,435.74,2611.33,436,2615.6,436z"/>
|
||||||
|
<path fill="#333333" d="M2822,553.6c-6.4,0-12.74-0.74-19-2.2c-6.27-1.46-11.74-4-16.4-7.6c-4.67-3.6-8.6-8.06-11.8-13.4 c-3.2-5.33-5.47-11-6.8-17c-1.34-6-1.87-12.26-1.6-18.8c0.26-6.53,0.93-13,2-19.4l17.2-104.8h-36v-28h40.8l14-86h31.2l-14,86h68 v28h-72.8l-18,109.2c-0.54,3.47-0.87,6.94-1,10.4c-0.14,3.47-0.14,6.87,0,10.2c0.13,3.34,0.73,6.6,1.8,9.8 c1.06,3.2,2.66,6,4.8,8.4c2.13,2.4,4.73,4.2,7.8,5.4c3.06,1.2,6.33,1.8,9.8,1.8c4.8,0,9.53-1.2,14.2-3.6 c4.66-2.4,8.6-5.6,11.8-9.6s5.8-8.33,7.8-13c2-4.66,3.66-9.4,5-14.2l28.4,8c-1.34,5.07-3.07,10.07-5.2,15 c-2.14,4.94-4.74,9.74-7.8,14.4c-3.07,4.67-6.54,9-10.4,13c-3.87,4-8.2,7.4-13,10.2c-4.8,2.8-9.87,4.8-15.2,6 C2832.26,553,2827.06,553.6,2822,553.6z"/>
|
||||||
|
<path fill="#333333" d="M2936.4,550.4l0.4-180h-16.4v-28h48l-10.8,180.8l38-102.4h30.4l4.4,102.4l49.2-180.8h31.6l-68.4,208h-30.4 l-6.8-96.8l-38.8,96.8H2936.4z"/>
|
||||||
|
<path fill="#333333" d="M3193.2,553.6c-7.74,0-15.2-0.8-22.4-2.4c-7.2-1.6-13.67-4.46-19.4-8.6c-5.74-4.13-10.54-9.2-14.4-15.2 c-3.87-6-6.67-12.6-8.4-19.8c-1.74-7.2-2.54-14.6-2.4-22.2c0.13-7.6,0.86-15.13,2.2-22.6l8-48c1.06-6.66,2.66-13.26,4.8-19.8 c2.13-6.53,5.06-12.8,8.8-18.8c3.73-6,8.2-11.46,13.4-16.4c5.2-4.93,10.93-9,17.2-12.2c6.26-3.2,12.73-5.4,19.4-6.6 c6.66-1.2,13.33-1.8,20-1.8c7.73,0,15.2,0.8,22.4,2.4c7.2,1.6,13.73,4.47,19.6,8.6c5.86,4.14,10.73,9.2,14.6,15.2 c3.86,6,6.66,12.6,8.4,19.8c1.73,7.2,2.46,14.6,2.2,22.2c-0.27,7.6-0.94,15.14-2,22.6l-8,48c-1.07,6.67-2.74,13.27-5,19.8 c-2.27,6.54-5.2,12.8-8.8,18.8c-3.6,6-8,11.47-13.2,16.4c-5.2,4.94-10.94,9-17.2,12.2c-6.27,3.2-12.8,5.4-19.6,6.6 C3206.6,553,3199.86,553.6,3193.2,553.6z M3193.6,525.6c4.53,0,8.93-0.53,13.2-1.6c4.26-1.06,8.4-2.8,12.4-5.2s7.66-5.33,11-8.8 c3.33-3.46,6.06-7.2,8.2-11.2c2.13-4,3.86-8.13,5.2-12.4c1.33-4.26,2.26-8.53,2.8-12.8l8-48c0.8-4.53,1.33-9.13,1.6-13.8 c0.26-4.66,0-9.2-0.8-13.6c-0.8-4.4-2.07-8.6-3.8-12.6c-1.74-4-4.14-7.46-7.2-10.4c-3.07-2.93-6.74-5-11-6.2 c-4.27-1.2-8.67-1.8-13.2-1.8c-4.54,0-9,0.54-13.4,1.6c-4.4,1.07-8.6,2.8-12.6,5.2s-7.6,5.34-10.8,8.8c-3.2,3.47-5.87,7.2-8,11.2 c-2.14,4-3.87,8.14-5.2,12.4c-1.34,4.27-2.4,8.54-3.2,12.8l-8,48c-0.8,4.54-1.27,9.14-1.4,13.8c-0.14,4.67,0.13,9.2,0.8,13.6 c0.66,4.4,1.86,8.6,3.6,12.6c1.73,4,4.13,7.47,7.2,10.4c3.06,2.94,6.8,5,11.2,6.2C3184.6,525,3189.06,525.6,3193.6,525.6z"/>
|
||||||
|
<path fill="#333333" d="M3341.2,550.4l29.6-180h-23.6v-28h59.6L3400,382c2.93-5.6,6.33-11.06,10.2-16.4c3.86-5.33,8.2-10,13-14 s10.26-7.06,16.4-9.2c6.13-2.13,12.13-3.2,18-3.2c4.8,0,9.4,0.67,13.8,2c4.4,1.34,8.26,3.54,11.6,6.6 c3.33,3.07,5.93,6.67,7.8,10.8c1.86,4.14,3.06,8.54,3.6,13.2c0.53,4.67,0.6,9.4,0.2,14.2c-0.4,4.8-1,9.6-1.8,14.4h-31.2 c0.53-3.73,0.86-7.4,1-11c0.13-3.6-0.27-7.13-1.2-10.6c-0.94-3.46-2.74-6.26-5.4-8.4c-2.67-2.13-5.87-3.2-9.6-3.2 c-5.07,0-10.14,0.87-15.2,2.6c-5.07,1.74-9.6,4.34-13.6,7.8c-4,3.47-7.4,7.4-10.2,11.8c-2.8,4.4-5.2,9-7.2,13.8 c-2,4.8-3.67,9.67-5,14.6c-1.34,4.94-2.4,9.8-3.2,14.6l-19.6,118H3341.2z"/>
|
||||||
|
<path fill="#333333" d="M3635.6,553.2c-4,0-7.94-0.67-11.8-2c-3.87-1.33-7.07-3.33-9.6-6c-2.54-2.66-4.47-5.8-5.8-9.4 c-1.34-3.6-2.4-7.4-3.2-11.4l-10.4-54.8c-2.14,0.27-4.34,0.47-6.6,0.6c-2.27,0.14-4.6,0.2-7,0.2c-2.14,0-4.34-0.06-6.6-0.2 c-2.27-0.13-4.47-0.33-6.6-0.6l-13.2,80.8h-31.6l44-266h-16.4v-28h52.4l-17.6,108c3.73-3.73,7.73-7.26,12-10.6 c4.26-3.33,8.86-6.06,13.8-8.2c4.93-2.13,9.93-3.73,15-4.8c5.06-1.06,10-1.6,14.8-1.6c7.2,0,13.8,1.47,19.8,4.4 c6,2.94,10.8,7.07,14.4,12.4c3.6,5.34,5.93,11.4,7,18.2c1.06,6.8,1.06,13.67,0,20.6c-1.34,7.47-3.54,14.87-6.6,22.2 c-3.07,7.34-7.2,14-12.4,20c-5.2,6-11.2,11.14-18,15.4c-6.8,4.27-14.07,7.74-21.8,10.4l10.8,56.8c0.26,1.6,0.86,3.07,1.8,4.4 c0.93,1.34,2.2,2,3.8,2s3.13-0.6,4.6-1.8c1.46-1.2,2.6-2.46,3.4-3.8l31.6-54.8l25.6,13.6l-31.2,54.4c-1.87,3.2-4.34,6-7.4,8.4 c-3.07,2.4-6.34,4.47-9.8,6.2c-3.47,1.74-7,3-10.6,3.8C3642.6,552.8,3639.06,553.2,3635.6,553.2z M3583.6,444 c4.53,0,9.2-0.4,14-1.2c4.8-0.8,9.6-2,14.4-3.6c4.8-1.6,9.4-3.66,13.8-6.2c4.4-2.53,8.46-5.66,12.2-9.4 c3.73-3.73,6.6-7.93,8.6-12.6c2-4.66,3.4-9.4,4.2-14.2c0.53-3.46,0.73-6.86,0.6-10.2c-0.14-3.33-0.94-6.46-2.4-9.4 c-1.47-2.93-3.54-5.33-6.2-7.2c-2.67-1.86-5.74-2.8-9.2-2.8c-5.34,0-10.87,1.27-16.6,3.8c-5.74,2.54-10.74,5.87-15,10 c-4.27,4.14-8,8.74-11.2,13.8c-3.2,5.07-6,10.27-8.4,15.6c-2.4,5.34-4.34,10.74-5.8,16.2c-1.47,5.47-2.87,11-4.2,16.6 c1.86,0.27,3.73,0.47,5.6,0.6C3579.86,443.94,3581.73,444,3583.6,444z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 74 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" width="500" height="500"><path d="M193.36704 165.97504l52.9664 100.22912-97.78688 337.36192c-52.9664 185.79456-96.9728 341.43744-96.9728 345.50784 0 5.70368 99.41504 6.51776 291.72736 3.26144 327.58272-4.8896 334.10048-6.51776 412.32896-67.6352 89.63584-70.89664 146.67776-186.60864 196.38784-398.47936 27.70432-116.52608 27.70432-163.79392 0-220.83072-36.66944-74.96704-88.82176-100.22912-265.6512-129.56672C560.87552 115.45088 187.65824 66.56 156.69248 66.56c-13.8496 0-9.77408 12.22144 36.67456 99.41504z m517.44768 182.53312c21.18656 17.92512 25.26208 26.89024 25.26208 57.856 0 41.55904-14.6688 98.60096-50.52416 193.94048-49.70496 132.01408-79.85664 149.94432-240.38912 150.7584-68.44928 0-108.38016-3.26144-108.38016-8.15104 0-7.33184 105.9328-369.14176 118.15936-405.8112 2.44224-7.33184 33.408-9.7792 117.34528-9.7792 110.00832 0 114.07872 0.81408 138.52672 21.18656z" fill="#2E8CFF"/></svg>
|
||||||
|
After Width: | Height: | Size: 1007 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="50" viewBox="0 0 1024 1024" width="50"><path d="M572.4 584.1m-159.4 0a159.4 159.4 0 1 0 318.8 0 159.4 159.4 0 1 0-318.8 0Z" fill="#FF4C4D"/><path d="M223.3 743.5l54.5-145.4h199.7l51.9 145.4h61.9L408.6 231.8l-6.8-19.7-41.5-0.6-199.3 532h62.3zM380 325l76.6 214.8h-157L380 325zM869.1 474.2c17 19.2 25.4 45.2 25.4 78v183.6H853v-48.1c-11.4 15.9-26.2 28.8-44.2 38.7-21.8 11.4-45.4 17.1-70.8 17.1-28.8 0-51.6-7.4-68.6-22.1-17.7-15.1-26.6-35.2-26.6-60.3 0-36.5 14.6-63.1 43.7-79.6 23.6-14 55.3-21 95.1-21l68.6-0.6v-9.4c0-47.9-24.9-71.9-74.7-71.9-23.2 0-41.3 4.8-54.2 14.4-14.4 10-23.2 24.7-26.5 44.2h-43.7c4.4-32.8 18.4-57.1 42-73 20.6-14.7 49-22.1 85.2-22.1 40.7 0 70.9 10.7 90.8 32.1z m-18.8 120.5l-65.8 0.6c-64.1 0-96.2 21.8-96.2 65.3 0 14 5.2 25.4 15.5 34.3 10.7 8.5 25.2 12.7 43.7 12.7 28.8 0 53.3-8.9 73.6-26.6 19.5-17.7 29.3-38.2 29.3-61.4v-24.9z"/></svg>
|
||||||
|
After Width: | Height: | Size: 902 B |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1,5 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" width="72" height="72">
|
||||||
|
<rect width="72" height="72" rx="19" fill="#e8efff"/>
|
||||||
|
<path d="M18 26a4 4 0 0 1 4-4h12l5 5h12a4 4 0 0 1 4 4v16a5 5 0 0 1-5 5H23a5 5 0 0 1-5-5Z" fill="#c5d7ff" stroke="#214ed7" stroke-width="2.5" stroke-linejoin="round"/>
|
||||||
|
<path d="m29 39 5 5 10-10" fill="none" stroke="#214ed7" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 439 B |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 76 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="4" width="16" height="8" fill="#ff7186"/><rect x="4" width="8" height="24" fill="#ff7186"/><rect x="12" width="8" height="8" fill="#ff889f"/><rect x="4" y="8" width="8" height="8" fill="#ff4e58"/><rect x="4" y="16" width="8" height="8" fill="#f2254d"/></svg>
|
||||||
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
|
if (PHP_VERSION_ID < 50600) {
|
||||||
|
if (!headers_sent()) {
|
||||||
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
|
}
|
||||||
|
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
||||||
|
if (!ini_get('display_errors')) {
|
||||||
|
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||||
|
fwrite(STDERR, $err);
|
||||||
|
} elseif (!headers_sent()) {
|
||||||
|
echo $err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new RuntimeException($err);
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
|
return ComposerAutoloaderInit5ef62e2f7b2581def09f179153bef324::getLoader();
|
||||||
@@ -0,0 +1,579 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Composer.
|
||||||
|
*
|
||||||
|
* (c) Nils Adermann <naderman@naderman.de>
|
||||||
|
* Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||||
|
*
|
||||||
|
* $loader = new \Composer\Autoload\ClassLoader();
|
||||||
|
*
|
||||||
|
* // register classes with namespaces
|
||||||
|
* $loader->add('Symfony\Component', __DIR__.'/component');
|
||||||
|
* $loader->add('Symfony', __DIR__.'/framework');
|
||||||
|
*
|
||||||
|
* // activate the autoloader
|
||||||
|
* $loader->register();
|
||||||
|
*
|
||||||
|
* // to enable searching the include path (eg. for PEAR packages)
|
||||||
|
* $loader->setUseIncludePath(true);
|
||||||
|
*
|
||||||
|
* In this example, if you try to use a class in the Symfony\Component
|
||||||
|
* namespace or one of its children (Symfony\Component\Console for instance),
|
||||||
|
* the autoloader will first look for the class under the component/
|
||||||
|
* directory, and it will then fallback to the framework/ directory if not
|
||||||
|
* found before giving up.
|
||||||
|
*
|
||||||
|
* This class is loosely based on the Symfony UniversalClassLoader.
|
||||||
|
*
|
||||||
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
* @see https://www.php-fig.org/psr/psr-0/
|
||||||
|
* @see https://www.php-fig.org/psr/psr-4/
|
||||||
|
*/
|
||||||
|
class ClassLoader
|
||||||
|
{
|
||||||
|
/** @var \Closure(string):void */
|
||||||
|
private static $includeFile;
|
||||||
|
|
||||||
|
/** @var string|null */
|
||||||
|
private $vendorDir;
|
||||||
|
|
||||||
|
// PSR-4
|
||||||
|
/**
|
||||||
|
* @var array<string, array<string, int>>
|
||||||
|
*/
|
||||||
|
private $prefixLengthsPsr4 = array();
|
||||||
|
/**
|
||||||
|
* @var array<string, list<string>>
|
||||||
|
*/
|
||||||
|
private $prefixDirsPsr4 = array();
|
||||||
|
/**
|
||||||
|
* @var list<string>
|
||||||
|
*/
|
||||||
|
private $fallbackDirsPsr4 = array();
|
||||||
|
|
||||||
|
// PSR-0
|
||||||
|
/**
|
||||||
|
* List of PSR-0 prefixes
|
||||||
|
*
|
||||||
|
* Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
|
||||||
|
*
|
||||||
|
* @var array<string, array<string, list<string>>>
|
||||||
|
*/
|
||||||
|
private $prefixesPsr0 = array();
|
||||||
|
/**
|
||||||
|
* @var list<string>
|
||||||
|
*/
|
||||||
|
private $fallbackDirsPsr0 = array();
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
private $useIncludePath = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string, string>
|
||||||
|
*/
|
||||||
|
private $classMap = array();
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
private $classMapAuthoritative = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string, bool>
|
||||||
|
*/
|
||||||
|
private $missingClasses = array();
|
||||||
|
|
||||||
|
/** @var string|null */
|
||||||
|
private $apcuPrefix;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array<string, self>
|
||||||
|
*/
|
||||||
|
private static $registeredLoaders = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|null $vendorDir
|
||||||
|
*/
|
||||||
|
public function __construct($vendorDir = null)
|
||||||
|
{
|
||||||
|
$this->vendorDir = $vendorDir;
|
||||||
|
self::initializeIncludeClosure();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, list<string>>
|
||||||
|
*/
|
||||||
|
public function getPrefixes()
|
||||||
|
{
|
||||||
|
if (!empty($this->prefixesPsr0)) {
|
||||||
|
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
||||||
|
}
|
||||||
|
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, list<string>>
|
||||||
|
*/
|
||||||
|
public function getPrefixesPsr4()
|
||||||
|
{
|
||||||
|
return $this->prefixDirsPsr4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return list<string>
|
||||||
|
*/
|
||||||
|
public function getFallbackDirs()
|
||||||
|
{
|
||||||
|
return $this->fallbackDirsPsr0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return list<string>
|
||||||
|
*/
|
||||||
|
public function getFallbackDirsPsr4()
|
||||||
|
{
|
||||||
|
return $this->fallbackDirsPsr4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, string> Array of classname => path
|
||||||
|
*/
|
||||||
|
public function getClassMap()
|
||||||
|
{
|
||||||
|
return $this->classMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, string> $classMap Class to filename map
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function addClassMap(array $classMap)
|
||||||
|
{
|
||||||
|
if ($this->classMap) {
|
||||||
|
$this->classMap = array_merge($this->classMap, $classMap);
|
||||||
|
} else {
|
||||||
|
$this->classMap = $classMap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-0 directories for a given prefix, either
|
||||||
|
* appending or prepending to the ones previously set for this prefix.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix
|
||||||
|
* @param list<string>|string $paths The PSR-0 root directories
|
||||||
|
* @param bool $prepend Whether to prepend the directories
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function add($prefix, $paths, $prepend = false)
|
||||||
|
{
|
||||||
|
$paths = (array) $paths;
|
||||||
|
if (!$prefix) {
|
||||||
|
if ($prepend) {
|
||||||
|
$this->fallbackDirsPsr0 = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->fallbackDirsPsr0
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->fallbackDirsPsr0 = array_merge(
|
||||||
|
$this->fallbackDirsPsr0,
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$first = $prefix[0];
|
||||||
|
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
||||||
|
$this->prefixesPsr0[$first][$prefix] = $paths;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ($prepend) {
|
||||||
|
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->prefixesPsr0[$first][$prefix]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||||
|
$this->prefixesPsr0[$first][$prefix],
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-4 directories for a given namespace, either
|
||||||
|
* appending or prepending to the ones previously set for this namespace.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||||
|
* @param list<string>|string $paths The PSR-4 base directories
|
||||||
|
* @param bool $prepend Whether to prepend the directories
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function addPsr4($prefix, $paths, $prepend = false)
|
||||||
|
{
|
||||||
|
$paths = (array) $paths;
|
||||||
|
if (!$prefix) {
|
||||||
|
// Register directories for the root namespace.
|
||||||
|
if ($prepend) {
|
||||||
|
$this->fallbackDirsPsr4 = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->fallbackDirsPsr4
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->fallbackDirsPsr4 = array_merge(
|
||||||
|
$this->fallbackDirsPsr4,
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
||||||
|
// Register directories for a new namespace.
|
||||||
|
$length = strlen($prefix);
|
||||||
|
if ('\\' !== $prefix[$length - 1]) {
|
||||||
|
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||||
|
}
|
||||||
|
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||||
|
$this->prefixDirsPsr4[$prefix] = $paths;
|
||||||
|
} elseif ($prepend) {
|
||||||
|
// Prepend directories for an already registered namespace.
|
||||||
|
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||||
|
$paths,
|
||||||
|
$this->prefixDirsPsr4[$prefix]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// Append directories for an already registered namespace.
|
||||||
|
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||||
|
$this->prefixDirsPsr4[$prefix],
|
||||||
|
$paths
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-0 directories for a given prefix,
|
||||||
|
* replacing any others previously set for this prefix.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix
|
||||||
|
* @param list<string>|string $paths The PSR-0 base directories
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function set($prefix, $paths)
|
||||||
|
{
|
||||||
|
if (!$prefix) {
|
||||||
|
$this->fallbackDirsPsr0 = (array) $paths;
|
||||||
|
} else {
|
||||||
|
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers a set of PSR-4 directories for a given namespace,
|
||||||
|
* replacing any others previously set for this namespace.
|
||||||
|
*
|
||||||
|
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||||
|
* @param list<string>|string $paths The PSR-4 base directories
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setPsr4($prefix, $paths)
|
||||||
|
{
|
||||||
|
if (!$prefix) {
|
||||||
|
$this->fallbackDirsPsr4 = (array) $paths;
|
||||||
|
} else {
|
||||||
|
$length = strlen($prefix);
|
||||||
|
if ('\\' !== $prefix[$length - 1]) {
|
||||||
|
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||||
|
}
|
||||||
|
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||||
|
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Turns on searching the include path for class files.
|
||||||
|
*
|
||||||
|
* @param bool $useIncludePath
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setUseIncludePath($useIncludePath)
|
||||||
|
{
|
||||||
|
$this->useIncludePath = $useIncludePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Can be used to check if the autoloader uses the include path to check
|
||||||
|
* for classes.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function getUseIncludePath()
|
||||||
|
{
|
||||||
|
return $this->useIncludePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Turns off searching the prefix and fallback directories for classes
|
||||||
|
* that have not been registered with the class map.
|
||||||
|
*
|
||||||
|
* @param bool $classMapAuthoritative
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setClassMapAuthoritative($classMapAuthoritative)
|
||||||
|
{
|
||||||
|
$this->classMapAuthoritative = $classMapAuthoritative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should class lookup fail if not found in the current class map?
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function isClassMapAuthoritative()
|
||||||
|
{
|
||||||
|
return $this->classMapAuthoritative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
||||||
|
*
|
||||||
|
* @param string|null $apcuPrefix
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setApcuPrefix($apcuPrefix)
|
||||||
|
{
|
||||||
|
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The APCu prefix in use, or null if APCu caching is not enabled.
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getApcuPrefix()
|
||||||
|
{
|
||||||
|
return $this->apcuPrefix;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers this instance as an autoloader.
|
||||||
|
*
|
||||||
|
* @param bool $prepend Whether to prepend the autoloader or not
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register($prepend = false)
|
||||||
|
{
|
||||||
|
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||||
|
|
||||||
|
if (null === $this->vendorDir) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($prepend) {
|
||||||
|
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
|
||||||
|
} else {
|
||||||
|
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||||
|
self::$registeredLoaders[$this->vendorDir] = $this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unregisters this instance as an autoloader.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function unregister()
|
||||||
|
{
|
||||||
|
spl_autoload_unregister(array($this, 'loadClass'));
|
||||||
|
|
||||||
|
if (null !== $this->vendorDir) {
|
||||||
|
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the given class or interface.
|
||||||
|
*
|
||||||
|
* @param string $class The name of the class
|
||||||
|
* @return true|null True if loaded, null otherwise
|
||||||
|
*/
|
||||||
|
public function loadClass($class)
|
||||||
|
{
|
||||||
|
if ($file = $this->findFile($class)) {
|
||||||
|
$includeFile = self::$includeFile;
|
||||||
|
$includeFile($file);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds the path to the file where the class is defined.
|
||||||
|
*
|
||||||
|
* @param string $class The name of the class
|
||||||
|
*
|
||||||
|
* @return string|false The path if found, false otherwise
|
||||||
|
*/
|
||||||
|
public function findFile($class)
|
||||||
|
{
|
||||||
|
// class map lookup
|
||||||
|
if (isset($this->classMap[$class])) {
|
||||||
|
return $this->classMap[$class];
|
||||||
|
}
|
||||||
|
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (null !== $this->apcuPrefix) {
|
||||||
|
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
||||||
|
if ($hit) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$file = $this->findFileWithExtension($class, '.php');
|
||||||
|
|
||||||
|
// Search for Hack files if we are running on HHVM
|
||||||
|
if (false === $file && defined('HHVM_VERSION')) {
|
||||||
|
$file = $this->findFileWithExtension($class, '.hh');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (null !== $this->apcuPrefix) {
|
||||||
|
apcu_add($this->apcuPrefix.$class, $file);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (false === $file) {
|
||||||
|
// Remember that this class does not exist.
|
||||||
|
$this->missingClasses[$class] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the currently registered loaders keyed by their corresponding vendor directories.
|
||||||
|
*
|
||||||
|
* @return array<string, self>
|
||||||
|
*/
|
||||||
|
public static function getRegisteredLoaders()
|
||||||
|
{
|
||||||
|
return self::$registeredLoaders;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $class
|
||||||
|
* @param string $ext
|
||||||
|
* @return string|false
|
||||||
|
*/
|
||||||
|
private function findFileWithExtension($class, $ext)
|
||||||
|
{
|
||||||
|
// PSR-4 lookup
|
||||||
|
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
||||||
|
|
||||||
|
$first = $class[0];
|
||||||
|
if (isset($this->prefixLengthsPsr4[$first])) {
|
||||||
|
$subPath = $class;
|
||||||
|
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
||||||
|
$subPath = substr($subPath, 0, $lastPos);
|
||||||
|
$search = $subPath . '\\';
|
||||||
|
if (isset($this->prefixDirsPsr4[$search])) {
|
||||||
|
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
||||||
|
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
||||||
|
if (file_exists($file = $dir . $pathEnd)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-4 fallback dirs
|
||||||
|
foreach ($this->fallbackDirsPsr4 as $dir) {
|
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-0 lookup
|
||||||
|
if (false !== $pos = strrpos($class, '\\')) {
|
||||||
|
// namespaced class name
|
||||||
|
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
||||||
|
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
||||||
|
} else {
|
||||||
|
// PEAR-like class name
|
||||||
|
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($this->prefixesPsr0[$first])) {
|
||||||
|
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
||||||
|
if (0 === strpos($class, $prefix)) {
|
||||||
|
foreach ($dirs as $dir) {
|
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-0 fallback dirs
|
||||||
|
foreach ($this->fallbackDirsPsr0 as $dir) {
|
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PSR-0 include paths.
|
||||||
|
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private static function initializeIncludeClosure()
|
||||||
|
{
|
||||||
|
if (self::$includeFile !== null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Scope isolated include.
|
||||||
|
*
|
||||||
|
* Prevents access to $this/self from included files.
|
||||||
|
*
|
||||||
|
* @param string $file
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
self::$includeFile = \Closure::bind(static function($file) {
|
||||||
|
include $file;
|
||||||
|
}, null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,396 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Composer.
|
||||||
|
*
|
||||||
|
* (c) Nils Adermann <naderman@naderman.de>
|
||||||
|
* Jordi Boggiano <j.boggiano@seld.be>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Composer;
|
||||||
|
|
||||||
|
use Composer\Autoload\ClassLoader;
|
||||||
|
use Composer\Semver\VersionParser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is copied in every Composer installed project and available to all
|
||||||
|
*
|
||||||
|
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||||
|
*
|
||||||
|
* To require its presence, you can require `composer-runtime-api ^2.0`
|
||||||
|
*
|
||||||
|
* @final
|
||||||
|
*/
|
||||||
|
class InstalledVersions
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
private static $selfDir = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var mixed[]|null
|
||||||
|
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
||||||
|
*/
|
||||||
|
private static $installed;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
private static $installedIsLocalDir;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool|null
|
||||||
|
*/
|
||||||
|
private static $canGetVendors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array[]
|
||||||
|
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||||
|
*/
|
||||||
|
private static $installedByVendor = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of all package names which are present, either by being installed, replaced or provided
|
||||||
|
*
|
||||||
|
* @return string[]
|
||||||
|
* @psalm-return list<string>
|
||||||
|
*/
|
||||||
|
public static function getInstalledPackages()
|
||||||
|
{
|
||||||
|
$packages = array();
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
$packages[] = array_keys($installed['versions']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (1 === \count($packages)) {
|
||||||
|
return $packages[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of all package names with a specific type e.g. 'library'
|
||||||
|
*
|
||||||
|
* @param string $type
|
||||||
|
* @return string[]
|
||||||
|
* @psalm-return list<string>
|
||||||
|
*/
|
||||||
|
public static function getInstalledPackagesByType($type)
|
||||||
|
{
|
||||||
|
$packagesByType = array();
|
||||||
|
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
foreach ($installed['versions'] as $name => $package) {
|
||||||
|
if (isset($package['type']) && $package['type'] === $type) {
|
||||||
|
$packagesByType[] = $name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $packagesByType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether the given package is installed
|
||||||
|
*
|
||||||
|
* This also returns true if the package name is provided or replaced by another package
|
||||||
|
*
|
||||||
|
* @param string $packageName
|
||||||
|
* @param bool $includeDevRequirements
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function isInstalled($packageName, $includeDevRequirements = true)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (isset($installed['versions'][$packageName])) {
|
||||||
|
return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether the given package satisfies a version constraint
|
||||||
|
*
|
||||||
|
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
||||||
|
*
|
||||||
|
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
||||||
|
*
|
||||||
|
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
||||||
|
* @param string $packageName
|
||||||
|
* @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||||
|
{
|
||||||
|
$constraint = $parser->parseConstraints((string) $constraint);
|
||||||
|
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||||
|
|
||||||
|
return $provided->matches($constraint);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a version constraint representing all the range(s) which are installed for a given package
|
||||||
|
*
|
||||||
|
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
||||||
|
* whether a given version of a package is installed, and not just whether it exists
|
||||||
|
*
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string Version constraint usable with composer/semver
|
||||||
|
*/
|
||||||
|
public static function getVersionRanges($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$ranges = array();
|
||||||
|
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||||
|
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||||
|
}
|
||||||
|
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||||
|
}
|
||||||
|
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||||
|
}
|
||||||
|
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode(' || ', $ranges);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||||
|
*/
|
||||||
|
public static function getVersion($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['version'];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||||
|
*/
|
||||||
|
public static function getPrettyVersion($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['pretty_version'];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
|
||||||
|
*/
|
||||||
|
public static function getReference($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['reference'];
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $packageName
|
||||||
|
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
||||||
|
*/
|
||||||
|
public static function getInstallPath($packageName)
|
||||||
|
{
|
||||||
|
foreach (self::getInstalled() as $installed) {
|
||||||
|
if (!isset($installed['versions'][$packageName])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
||||||
|
*/
|
||||||
|
public static function getRootPackage()
|
||||||
|
{
|
||||||
|
$installed = self::getInstalled();
|
||||||
|
|
||||||
|
return $installed[0]['root'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the raw installed.php data for custom implementations
|
||||||
|
*
|
||||||
|
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
||||||
|
* @return array[]
|
||||||
|
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
||||||
|
*/
|
||||||
|
public static function getRawData()
|
||||||
|
{
|
||||||
|
@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);
|
||||||
|
|
||||||
|
if (null === self::$installed) {
|
||||||
|
// only require the installed.php file if this file is loaded from its dumped location,
|
||||||
|
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||||
|
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||||
|
self::$installed = include __DIR__ . '/installed.php';
|
||||||
|
} else {
|
||||||
|
self::$installed = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$installed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
||||||
|
*
|
||||||
|
* @return array[]
|
||||||
|
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||||
|
*/
|
||||||
|
public static function getAllRawData()
|
||||||
|
{
|
||||||
|
return self::getInstalled();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lets you reload the static array from another file
|
||||||
|
*
|
||||||
|
* This is only useful for complex integrations in which a project needs to use
|
||||||
|
* this class but then also needs to execute another project's autoloader in process,
|
||||||
|
* and wants to ensure both projects have access to their version of installed.php.
|
||||||
|
*
|
||||||
|
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
||||||
|
* the data it needs from this class, then call reload() with
|
||||||
|
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
||||||
|
* the project in which it runs can then also use this class safely, without
|
||||||
|
* interference between PHPUnit's dependencies and the project's dependencies.
|
||||||
|
*
|
||||||
|
* @param array[] $data A vendor/composer/installed.php data set
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
||||||
|
*/
|
||||||
|
public static function reload($data)
|
||||||
|
{
|
||||||
|
self::$installed = $data;
|
||||||
|
self::$installedByVendor = array();
|
||||||
|
|
||||||
|
// when using reload, we disable the duplicate protection to ensure that self::$installed data is
|
||||||
|
// always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
|
||||||
|
// so we have to assume it does not, and that may result in duplicate data being returned when listing
|
||||||
|
// all installed packages for example
|
||||||
|
self::$installedIsLocalDir = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private static function getSelfDir()
|
||||||
|
{
|
||||||
|
if (self::$selfDir === null) {
|
||||||
|
self::$selfDir = strtr(__DIR__, '\\', '/');
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$selfDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array[]
|
||||||
|
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
||||||
|
*/
|
||||||
|
private static function getInstalled()
|
||||||
|
{
|
||||||
|
if (null === self::$canGetVendors) {
|
||||||
|
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
||||||
|
}
|
||||||
|
|
||||||
|
$installed = array();
|
||||||
|
$copiedLocalDir = false;
|
||||||
|
|
||||||
|
if (self::$canGetVendors) {
|
||||||
|
$selfDir = self::getSelfDir();
|
||||||
|
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||||
|
$vendorDir = strtr($vendorDir, '\\', '/');
|
||||||
|
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||||
|
$installed[] = self::$installedByVendor[$vendorDir];
|
||||||
|
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
||||||
|
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
|
||||||
|
$required = require $vendorDir.'/composer/installed.php';
|
||||||
|
self::$installedByVendor[$vendorDir] = $required;
|
||||||
|
$installed[] = $required;
|
||||||
|
if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
|
||||||
|
self::$installed = $required;
|
||||||
|
self::$installedIsLocalDir = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
|
||||||
|
$copiedLocalDir = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (null === self::$installed) {
|
||||||
|
// only require the installed.php file if this file is loaded from its dumped location,
|
||||||
|
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||||
|
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||||
|
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
|
||||||
|
$required = require __DIR__ . '/installed.php';
|
||||||
|
self::$installed = $required;
|
||||||
|
} else {
|
||||||
|
self::$installed = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (self::$installed !== array() && !$copiedLocalDir) {
|
||||||
|
$installed[] = self::$installed;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $installed;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
Copyright (c) Nils Adermann, Jordi Boggiano
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_classmap.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'AllowDynamicProperties' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php',
|
||||||
|
'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
||||||
|
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||||
|
'Nette\\ArgumentOutOfRangeException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\DeprecatedException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\DirectoryNotFoundException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\FileNotFoundException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\HtmlStringable' => $vendorDir . '/nette/utils/src/HtmlStringable.php',
|
||||||
|
'Nette\\IOException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\InvalidArgumentException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\InvalidStateException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\Iterators\\CachingIterator' => $vendorDir . '/nette/utils/src/Iterators/CachingIterator.php',
|
||||||
|
'Nette\\Iterators\\Mapper' => $vendorDir . '/nette/utils/src/Iterators/Mapper.php',
|
||||||
|
'Nette\\Localization\\ITranslator' => $vendorDir . '/nette/utils/src/compatibility.php',
|
||||||
|
'Nette\\Localization\\Translator' => $vendorDir . '/nette/utils/src/Translator.php',
|
||||||
|
'Nette\\MemberAccessException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\NotImplementedException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\NotSupportedException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\OutOfRangeException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\Schema\\Context' => $vendorDir . '/nette/schema/src/Schema/Context.php',
|
||||||
|
'Nette\\Schema\\DynamicParameter' => $vendorDir . '/nette/schema/src/Schema/DynamicParameter.php',
|
||||||
|
'Nette\\Schema\\Elements\\AnyOf' => $vendorDir . '/nette/schema/src/Schema/Elements/AnyOf.php',
|
||||||
|
'Nette\\Schema\\Elements\\ArrayType' => $vendorDir . '/nette/schema/src/Schema/Elements/ArrayType.php',
|
||||||
|
'Nette\\Schema\\Elements\\Base' => $vendorDir . '/nette/schema/src/Schema/Elements/Base.php',
|
||||||
|
'Nette\\Schema\\Elements\\EnumType' => $vendorDir . '/nette/schema/src/Schema/Elements/EnumType.php',
|
||||||
|
'Nette\\Schema\\Elements\\NumberType' => $vendorDir . '/nette/schema/src/Schema/Elements/NumberType.php',
|
||||||
|
'Nette\\Schema\\Elements\\StringType' => $vendorDir . '/nette/schema/src/Schema/Elements/StringType.php',
|
||||||
|
'Nette\\Schema\\Elements\\Structure' => $vendorDir . '/nette/schema/src/Schema/Elements/Structure.php',
|
||||||
|
'Nette\\Schema\\Elements\\TupleType' => $vendorDir . '/nette/schema/src/Schema/Elements/TupleType.php',
|
||||||
|
'Nette\\Schema\\Elements\\Type' => $vendorDir . '/nette/schema/src/Schema/Elements/Type.php',
|
||||||
|
'Nette\\Schema\\Expect' => $vendorDir . '/nette/schema/src/Schema/Expect.php',
|
||||||
|
'Nette\\Schema\\Helpers' => $vendorDir . '/nette/schema/src/Schema/Helpers.php',
|
||||||
|
'Nette\\Schema\\JsonSchema' => $vendorDir . '/nette/schema/src/Schema/JsonSchema.php',
|
||||||
|
'Nette\\Schema\\Kind' => $vendorDir . '/nette/schema/src/Schema/enums.php',
|
||||||
|
'Nette\\Schema\\MergeMode' => $vendorDir . '/nette/schema/src/Schema/enums.php',
|
||||||
|
'Nette\\Schema\\Message' => $vendorDir . '/nette/schema/src/Schema/Message.php',
|
||||||
|
'Nette\\Schema\\Processor' => $vendorDir . '/nette/schema/src/Schema/Processor.php',
|
||||||
|
'Nette\\Schema\\Schema' => $vendorDir . '/nette/schema/src/Schema/Schema.php',
|
||||||
|
'Nette\\Schema\\TypeExpression' => $vendorDir . '/nette/schema/src/Schema/TypeExpression.php',
|
||||||
|
'Nette\\Schema\\ValidationException' => $vendorDir . '/nette/schema/src/Schema/ValidationException.php',
|
||||||
|
'Nette\\ShouldNotHappenException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\SmartObject' => $vendorDir . '/nette/utils/src/SmartObject.php',
|
||||||
|
'Nette\\StaticClass' => $vendorDir . '/nette/utils/src/StaticClass.php',
|
||||||
|
'Nette\\UnexpectedValueException' => $vendorDir . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\Utils\\ArrayHash' => $vendorDir . '/nette/utils/src/Utils/ArrayHash.php',
|
||||||
|
'Nette\\Utils\\ArrayList' => $vendorDir . '/nette/utils/src/Utils/ArrayList.php',
|
||||||
|
'Nette\\Utils\\Arrays' => $vendorDir . '/nette/utils/src/Utils/Arrays.php',
|
||||||
|
'Nette\\Utils\\AssertionException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Callback' => $vendorDir . '/nette/utils/src/Utils/Callback.php',
|
||||||
|
'Nette\\Utils\\DateTime' => $vendorDir . '/nette/utils/src/Utils/DateTime.php',
|
||||||
|
'Nette\\Utils\\DateTimeImmutable' => $vendorDir . '/nette/utils/src/Utils/DateTimeImmutable.php',
|
||||||
|
'Nette\\Utils\\FileInfo' => $vendorDir . '/nette/utils/src/Utils/FileInfo.php',
|
||||||
|
'Nette\\Utils\\FileSystem' => $vendorDir . '/nette/utils/src/Utils/FileSystem.php',
|
||||||
|
'Nette\\Utils\\Finder' => $vendorDir . '/nette/utils/src/Utils/Finder.php',
|
||||||
|
'Nette\\Utils\\Floats' => $vendorDir . '/nette/utils/src/Utils/Floats.php',
|
||||||
|
'Nette\\Utils\\Helpers' => $vendorDir . '/nette/utils/src/Utils/Helpers.php',
|
||||||
|
'Nette\\Utils\\Html' => $vendorDir . '/nette/utils/src/Utils/Html.php',
|
||||||
|
'Nette\\Utils\\IHtmlString' => $vendorDir . '/nette/utils/src/compatibility.php',
|
||||||
|
'Nette\\Utils\\Image' => $vendorDir . '/nette/utils/src/Utils/Image.php',
|
||||||
|
'Nette\\Utils\\ImageColor' => $vendorDir . '/nette/utils/src/Utils/ImageColor.php',
|
||||||
|
'Nette\\Utils\\ImageException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\ImageType' => $vendorDir . '/nette/utils/src/Utils/ImageType.php',
|
||||||
|
'Nette\\Utils\\Iterables' => $vendorDir . '/nette/utils/src/Utils/Iterables.php',
|
||||||
|
'Nette\\Utils\\Json' => $vendorDir . '/nette/utils/src/Utils/Json.php',
|
||||||
|
'Nette\\Utils\\JsonException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\ObjectHelpers' => $vendorDir . '/nette/utils/src/Utils/ObjectHelpers.php',
|
||||||
|
'Nette\\Utils\\Paginator' => $vendorDir . '/nette/utils/src/Utils/Paginator.php',
|
||||||
|
'Nette\\Utils\\Process' => $vendorDir . '/nette/utils/src/Utils/Process.php',
|
||||||
|
'Nette\\Utils\\ProcessFailedException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\ProcessTimeoutException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Random' => $vendorDir . '/nette/utils/src/Utils/Random.php',
|
||||||
|
'Nette\\Utils\\Reflection' => $vendorDir . '/nette/utils/src/Utils/Reflection.php',
|
||||||
|
'Nette\\Utils\\ReflectionMethod' => $vendorDir . '/nette/utils/src/Utils/ReflectionMethod.php',
|
||||||
|
'Nette\\Utils\\RegexpException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Strings' => $vendorDir . '/nette/utils/src/Utils/Strings.php',
|
||||||
|
'Nette\\Utils\\Type' => $vendorDir . '/nette/utils/src/Utils/Type.php',
|
||||||
|
'Nette\\Utils\\UnknownImageFileException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Validators' => $vendorDir . '/nette/utils/src/Utils/Validators.php',
|
||||||
|
'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||||
|
'Random\\BrokenRandomEngineError' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php',
|
||||||
|
'Random\\CryptoSafeEngine' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php',
|
||||||
|
'Random\\Engine' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/Engine.php',
|
||||||
|
'Random\\Engine\\Secure' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php',
|
||||||
|
'Random\\RandomError' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php',
|
||||||
|
'Random\\RandomException' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php',
|
||||||
|
'SensitiveParameter' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php',
|
||||||
|
'SensitiveParameterValue' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php',
|
||||||
|
'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||||
|
'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
||||||
|
'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
||||||
|
);
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_files.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
|
||||||
|
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
|
||||||
|
'5897ea0ac4cccf14d323035e65887801' => $vendorDir . '/symfony/polyfill-php82/bootstrap.php',
|
||||||
|
'253c157292f75eb38082b5acb06f3f01' => $vendorDir . '/nikic/fast-route/src/functions.php',
|
||||||
|
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
|
||||||
|
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||||
|
'd2136ff22b54ac75cd96a40e0022218e' => $vendorDir . '/workerman/webman-framework/src/support/helpers.php',
|
||||||
|
);
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_namespaces.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
);
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_psr4.php @generated by Composer
|
||||||
|
|
||||||
|
$vendorDir = dirname(__DIR__);
|
||||||
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'support\\' => array($vendorDir . '/workerman/webman-framework/src/support'),
|
||||||
|
'Workerman\\Coroutine\\' => array($vendorDir . '/workerman/coroutine/src'),
|
||||||
|
'Workerman\\' => array($vendorDir . '/workerman/coroutine/src', $vendorDir . '/workerman/workerman/src'),
|
||||||
|
'Webman\\' => array($vendorDir . '/workerman/webman-framework/src'),
|
||||||
|
'Symfony\\Polyfill\\Php82\\' => array($vendorDir . '/symfony/polyfill-php82'),
|
||||||
|
'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),
|
||||||
|
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||||
|
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
|
||||||
|
'Support\\View\\' => array($vendorDir . '/workerman/webman-framework/src/support/view'),
|
||||||
|
'Support\\Exception\\' => array($vendorDir . '/workerman/webman-framework/src/support/exception'),
|
||||||
|
'Support\\Bootstrap\\' => array($vendorDir . '/workerman/webman-framework/src/support/bootstrap'),
|
||||||
|
'Support\\' => array($vendorDir . '/workerman/webman-framework/src/support'),
|
||||||
|
'Psr\\Log\\' => array($vendorDir . '/psr/log/src'),
|
||||||
|
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
|
||||||
|
'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
|
||||||
|
'Psr\\EventDispatcher\\' => array($vendorDir . '/psr/event-dispatcher/src'),
|
||||||
|
'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
|
||||||
|
'PhpOption\\' => array($vendorDir . '/phpoption/phpoption/src/PhpOption'),
|
||||||
|
'Nette\\' => array($vendorDir . '/nette/schema/src', $vendorDir . '/nette/utils/src'),
|
||||||
|
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
|
||||||
|
'League\\OAuth2\\Client\\' => array($vendorDir . '/league/oauth2-client/src'),
|
||||||
|
'League\\Config\\' => array($vendorDir . '/league/config/src'),
|
||||||
|
'League\\CommonMark\\' => array($vendorDir . '/league/commonmark/src'),
|
||||||
|
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
|
||||||
|
'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
|
||||||
|
'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
|
||||||
|
'GrahamCampbell\\ResultType\\' => array($vendorDir . '/graham-campbell/result-type/src'),
|
||||||
|
'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
|
||||||
|
'FastRoute\\' => array($vendorDir . '/nikic/fast-route/src'),
|
||||||
|
'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
|
||||||
|
'Dflydev\\DotAccessData\\' => array($vendorDir . '/dflydev/dot-access-data/src'),
|
||||||
|
'App\\' => array($baseDir . '/app'),
|
||||||
|
);
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
|
class ComposerAutoloaderInit5ef62e2f7b2581def09f179153bef324
|
||||||
|
{
|
||||||
|
private static $loader;
|
||||||
|
|
||||||
|
public static function loadClassLoader($class)
|
||||||
|
{
|
||||||
|
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||||
|
require __DIR__ . '/ClassLoader.php';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return \Composer\Autoload\ClassLoader
|
||||||
|
*/
|
||||||
|
public static function getLoader()
|
||||||
|
{
|
||||||
|
if (null !== self::$loader) {
|
||||||
|
return self::$loader;
|
||||||
|
}
|
||||||
|
|
||||||
|
require __DIR__ . '/platform_check.php';
|
||||||
|
|
||||||
|
spl_autoload_register(array('ComposerAutoloaderInit5ef62e2f7b2581def09f179153bef324', 'loadClassLoader'), true, true);
|
||||||
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||||
|
spl_autoload_unregister(array('ComposerAutoloaderInit5ef62e2f7b2581def09f179153bef324', 'loadClassLoader'));
|
||||||
|
|
||||||
|
require __DIR__ . '/autoload_static.php';
|
||||||
|
call_user_func(\Composer\Autoload\ComposerStaticInit5ef62e2f7b2581def09f179153bef324::getInitializer($loader));
|
||||||
|
|
||||||
|
$loader->register(true);
|
||||||
|
|
||||||
|
$filesToLoad = \Composer\Autoload\ComposerStaticInit5ef62e2f7b2581def09f179153bef324::$files;
|
||||||
|
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||||
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
|
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||||
|
|
||||||
|
require $file;
|
||||||
|
}
|
||||||
|
}, null, null);
|
||||||
|
foreach ($filesToLoad as $fileIdentifier => $file) {
|
||||||
|
$requireFile($fileIdentifier, $file);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $loader;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,323 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// autoload_static.php @generated by Composer
|
||||||
|
|
||||||
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
|
class ComposerStaticInit5ef62e2f7b2581def09f179153bef324
|
||||||
|
{
|
||||||
|
public static $files = array (
|
||||||
|
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
||||||
|
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||||
|
'5897ea0ac4cccf14d323035e65887801' => __DIR__ . '/..' . '/symfony/polyfill-php82/bootstrap.php',
|
||||||
|
'253c157292f75eb38082b5acb06f3f01' => __DIR__ . '/..' . '/nikic/fast-route/src/functions.php',
|
||||||
|
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||||
|
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||||
|
'd2136ff22b54ac75cd96a40e0022218e' => __DIR__ . '/..' . '/workerman/webman-framework/src/support/helpers.php',
|
||||||
|
);
|
||||||
|
|
||||||
|
public static $prefixLengthsPsr4 = array (
|
||||||
|
's' =>
|
||||||
|
array (
|
||||||
|
'support\\' => 8,
|
||||||
|
),
|
||||||
|
'W' =>
|
||||||
|
array (
|
||||||
|
'Workerman\\Coroutine\\' => 20,
|
||||||
|
'Workerman\\' => 10,
|
||||||
|
'Webman\\' => 7,
|
||||||
|
),
|
||||||
|
'S' =>
|
||||||
|
array (
|
||||||
|
'Symfony\\Polyfill\\Php82\\' => 23,
|
||||||
|
'Symfony\\Polyfill\\Php80\\' => 23,
|
||||||
|
'Symfony\\Polyfill\\Mbstring\\' => 26,
|
||||||
|
'Symfony\\Polyfill\\Ctype\\' => 23,
|
||||||
|
'Support\\View\\' => 13,
|
||||||
|
'Support\\Exception\\' => 18,
|
||||||
|
'Support\\Bootstrap\\' => 18,
|
||||||
|
'Support\\' => 8,
|
||||||
|
),
|
||||||
|
'P' =>
|
||||||
|
array (
|
||||||
|
'Psr\\Log\\' => 8,
|
||||||
|
'Psr\\Http\\Message\\' => 17,
|
||||||
|
'Psr\\Http\\Client\\' => 16,
|
||||||
|
'Psr\\EventDispatcher\\' => 20,
|
||||||
|
'Psr\\Container\\' => 14,
|
||||||
|
'PhpOption\\' => 10,
|
||||||
|
),
|
||||||
|
'N' =>
|
||||||
|
array (
|
||||||
|
'Nette\\' => 6,
|
||||||
|
),
|
||||||
|
'M' =>
|
||||||
|
array (
|
||||||
|
'Monolog\\' => 8,
|
||||||
|
),
|
||||||
|
'L' =>
|
||||||
|
array (
|
||||||
|
'League\\OAuth2\\Client\\' => 21,
|
||||||
|
'League\\Config\\' => 14,
|
||||||
|
'League\\CommonMark\\' => 18,
|
||||||
|
),
|
||||||
|
'G' =>
|
||||||
|
array (
|
||||||
|
'GuzzleHttp\\Psr7\\' => 16,
|
||||||
|
'GuzzleHttp\\Promise\\' => 19,
|
||||||
|
'GuzzleHttp\\' => 11,
|
||||||
|
'GrahamCampbell\\ResultType\\' => 26,
|
||||||
|
),
|
||||||
|
'F' =>
|
||||||
|
array (
|
||||||
|
'Firebase\\JWT\\' => 13,
|
||||||
|
'FastRoute\\' => 10,
|
||||||
|
),
|
||||||
|
'D' =>
|
||||||
|
array (
|
||||||
|
'Dotenv\\' => 7,
|
||||||
|
'Dflydev\\DotAccessData\\' => 22,
|
||||||
|
),
|
||||||
|
'A' =>
|
||||||
|
array (
|
||||||
|
'App\\' => 4,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
public static $prefixDirsPsr4 = array (
|
||||||
|
'support\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/webman-framework/src/support',
|
||||||
|
),
|
||||||
|
'Workerman\\Coroutine\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/coroutine/src',
|
||||||
|
),
|
||||||
|
'Workerman\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/coroutine/src',
|
||||||
|
1 => __DIR__ . '/..' . '/workerman/workerman/src',
|
||||||
|
),
|
||||||
|
'Webman\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/webman-framework/src',
|
||||||
|
),
|
||||||
|
'Symfony\\Polyfill\\Php82\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/symfony/polyfill-php82',
|
||||||
|
),
|
||||||
|
'Symfony\\Polyfill\\Php80\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
|
||||||
|
),
|
||||||
|
'Symfony\\Polyfill\\Mbstring\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
|
||||||
|
),
|
||||||
|
'Symfony\\Polyfill\\Ctype\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
|
||||||
|
),
|
||||||
|
'Support\\View\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/webman-framework/src/support/view',
|
||||||
|
),
|
||||||
|
'Support\\Exception\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/webman-framework/src/support/exception',
|
||||||
|
),
|
||||||
|
'Support\\Bootstrap\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/webman-framework/src/support/bootstrap',
|
||||||
|
),
|
||||||
|
'Support\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/workerman/webman-framework/src/support',
|
||||||
|
),
|
||||||
|
'Psr\\Log\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/psr/log/src',
|
||||||
|
),
|
||||||
|
'Psr\\Http\\Message\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/psr/http-factory/src',
|
||||||
|
1 => __DIR__ . '/..' . '/psr/http-message/src',
|
||||||
|
),
|
||||||
|
'Psr\\Http\\Client\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/psr/http-client/src',
|
||||||
|
),
|
||||||
|
'Psr\\EventDispatcher\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/psr/event-dispatcher/src',
|
||||||
|
),
|
||||||
|
'Psr\\Container\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/psr/container/src',
|
||||||
|
),
|
||||||
|
'PhpOption\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/phpoption/phpoption/src/PhpOption',
|
||||||
|
),
|
||||||
|
'Nette\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/nette/schema/src',
|
||||||
|
1 => __DIR__ . '/..' . '/nette/utils/src',
|
||||||
|
),
|
||||||
|
'Monolog\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog',
|
||||||
|
),
|
||||||
|
'League\\OAuth2\\Client\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/league/oauth2-client/src',
|
||||||
|
),
|
||||||
|
'League\\Config\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/league/config/src',
|
||||||
|
),
|
||||||
|
'League\\CommonMark\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/league/commonmark/src',
|
||||||
|
),
|
||||||
|
'GuzzleHttp\\Psr7\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
|
||||||
|
),
|
||||||
|
'GuzzleHttp\\Promise\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
|
||||||
|
),
|
||||||
|
'GuzzleHttp\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
|
||||||
|
),
|
||||||
|
'GrahamCampbell\\ResultType\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/graham-campbell/result-type/src',
|
||||||
|
),
|
||||||
|
'Firebase\\JWT\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
|
||||||
|
),
|
||||||
|
'FastRoute\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/nikic/fast-route/src',
|
||||||
|
),
|
||||||
|
'Dotenv\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/vlucas/phpdotenv/src',
|
||||||
|
),
|
||||||
|
'Dflydev\\DotAccessData\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/..' . '/dflydev/dot-access-data/src',
|
||||||
|
),
|
||||||
|
'App\\' =>
|
||||||
|
array (
|
||||||
|
0 => __DIR__ . '/../..' . '/app',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
public static $classMap = array (
|
||||||
|
'AllowDynamicProperties' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php',
|
||||||
|
'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
||||||
|
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||||
|
'Nette\\ArgumentOutOfRangeException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\DeprecatedException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\DirectoryNotFoundException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\FileNotFoundException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\HtmlStringable' => __DIR__ . '/..' . '/nette/utils/src/HtmlStringable.php',
|
||||||
|
'Nette\\IOException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\InvalidArgumentException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\InvalidStateException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\Iterators\\CachingIterator' => __DIR__ . '/..' . '/nette/utils/src/Iterators/CachingIterator.php',
|
||||||
|
'Nette\\Iterators\\Mapper' => __DIR__ . '/..' . '/nette/utils/src/Iterators/Mapper.php',
|
||||||
|
'Nette\\Localization\\ITranslator' => __DIR__ . '/..' . '/nette/utils/src/compatibility.php',
|
||||||
|
'Nette\\Localization\\Translator' => __DIR__ . '/..' . '/nette/utils/src/Translator.php',
|
||||||
|
'Nette\\MemberAccessException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\NotImplementedException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\NotSupportedException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\OutOfRangeException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\Schema\\Context' => __DIR__ . '/..' . '/nette/schema/src/Schema/Context.php',
|
||||||
|
'Nette\\Schema\\DynamicParameter' => __DIR__ . '/..' . '/nette/schema/src/Schema/DynamicParameter.php',
|
||||||
|
'Nette\\Schema\\Elements\\AnyOf' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/AnyOf.php',
|
||||||
|
'Nette\\Schema\\Elements\\ArrayType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/ArrayType.php',
|
||||||
|
'Nette\\Schema\\Elements\\Base' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/Base.php',
|
||||||
|
'Nette\\Schema\\Elements\\EnumType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/EnumType.php',
|
||||||
|
'Nette\\Schema\\Elements\\NumberType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/NumberType.php',
|
||||||
|
'Nette\\Schema\\Elements\\StringType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/StringType.php',
|
||||||
|
'Nette\\Schema\\Elements\\Structure' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/Structure.php',
|
||||||
|
'Nette\\Schema\\Elements\\TupleType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/TupleType.php',
|
||||||
|
'Nette\\Schema\\Elements\\Type' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/Type.php',
|
||||||
|
'Nette\\Schema\\Expect' => __DIR__ . '/..' . '/nette/schema/src/Schema/Expect.php',
|
||||||
|
'Nette\\Schema\\Helpers' => __DIR__ . '/..' . '/nette/schema/src/Schema/Helpers.php',
|
||||||
|
'Nette\\Schema\\JsonSchema' => __DIR__ . '/..' . '/nette/schema/src/Schema/JsonSchema.php',
|
||||||
|
'Nette\\Schema\\Kind' => __DIR__ . '/..' . '/nette/schema/src/Schema/enums.php',
|
||||||
|
'Nette\\Schema\\MergeMode' => __DIR__ . '/..' . '/nette/schema/src/Schema/enums.php',
|
||||||
|
'Nette\\Schema\\Message' => __DIR__ . '/..' . '/nette/schema/src/Schema/Message.php',
|
||||||
|
'Nette\\Schema\\Processor' => __DIR__ . '/..' . '/nette/schema/src/Schema/Processor.php',
|
||||||
|
'Nette\\Schema\\Schema' => __DIR__ . '/..' . '/nette/schema/src/Schema/Schema.php',
|
||||||
|
'Nette\\Schema\\TypeExpression' => __DIR__ . '/..' . '/nette/schema/src/Schema/TypeExpression.php',
|
||||||
|
'Nette\\Schema\\ValidationException' => __DIR__ . '/..' . '/nette/schema/src/Schema/ValidationException.php',
|
||||||
|
'Nette\\ShouldNotHappenException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\SmartObject' => __DIR__ . '/..' . '/nette/utils/src/SmartObject.php',
|
||||||
|
'Nette\\StaticClass' => __DIR__ . '/..' . '/nette/utils/src/StaticClass.php',
|
||||||
|
'Nette\\UnexpectedValueException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
|
||||||
|
'Nette\\Utils\\ArrayHash' => __DIR__ . '/..' . '/nette/utils/src/Utils/ArrayHash.php',
|
||||||
|
'Nette\\Utils\\ArrayList' => __DIR__ . '/..' . '/nette/utils/src/Utils/ArrayList.php',
|
||||||
|
'Nette\\Utils\\Arrays' => __DIR__ . '/..' . '/nette/utils/src/Utils/Arrays.php',
|
||||||
|
'Nette\\Utils\\AssertionException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Callback' => __DIR__ . '/..' . '/nette/utils/src/Utils/Callback.php',
|
||||||
|
'Nette\\Utils\\DateTime' => __DIR__ . '/..' . '/nette/utils/src/Utils/DateTime.php',
|
||||||
|
'Nette\\Utils\\DateTimeImmutable' => __DIR__ . '/..' . '/nette/utils/src/Utils/DateTimeImmutable.php',
|
||||||
|
'Nette\\Utils\\FileInfo' => __DIR__ . '/..' . '/nette/utils/src/Utils/FileInfo.php',
|
||||||
|
'Nette\\Utils\\FileSystem' => __DIR__ . '/..' . '/nette/utils/src/Utils/FileSystem.php',
|
||||||
|
'Nette\\Utils\\Finder' => __DIR__ . '/..' . '/nette/utils/src/Utils/Finder.php',
|
||||||
|
'Nette\\Utils\\Floats' => __DIR__ . '/..' . '/nette/utils/src/Utils/Floats.php',
|
||||||
|
'Nette\\Utils\\Helpers' => __DIR__ . '/..' . '/nette/utils/src/Utils/Helpers.php',
|
||||||
|
'Nette\\Utils\\Html' => __DIR__ . '/..' . '/nette/utils/src/Utils/Html.php',
|
||||||
|
'Nette\\Utils\\IHtmlString' => __DIR__ . '/..' . '/nette/utils/src/compatibility.php',
|
||||||
|
'Nette\\Utils\\Image' => __DIR__ . '/..' . '/nette/utils/src/Utils/Image.php',
|
||||||
|
'Nette\\Utils\\ImageColor' => __DIR__ . '/..' . '/nette/utils/src/Utils/ImageColor.php',
|
||||||
|
'Nette\\Utils\\ImageException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\ImageType' => __DIR__ . '/..' . '/nette/utils/src/Utils/ImageType.php',
|
||||||
|
'Nette\\Utils\\Iterables' => __DIR__ . '/..' . '/nette/utils/src/Utils/Iterables.php',
|
||||||
|
'Nette\\Utils\\Json' => __DIR__ . '/..' . '/nette/utils/src/Utils/Json.php',
|
||||||
|
'Nette\\Utils\\JsonException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\ObjectHelpers' => __DIR__ . '/..' . '/nette/utils/src/Utils/ObjectHelpers.php',
|
||||||
|
'Nette\\Utils\\Paginator' => __DIR__ . '/..' . '/nette/utils/src/Utils/Paginator.php',
|
||||||
|
'Nette\\Utils\\Process' => __DIR__ . '/..' . '/nette/utils/src/Utils/Process.php',
|
||||||
|
'Nette\\Utils\\ProcessFailedException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\ProcessTimeoutException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Random' => __DIR__ . '/..' . '/nette/utils/src/Utils/Random.php',
|
||||||
|
'Nette\\Utils\\Reflection' => __DIR__ . '/..' . '/nette/utils/src/Utils/Reflection.php',
|
||||||
|
'Nette\\Utils\\ReflectionMethod' => __DIR__ . '/..' . '/nette/utils/src/Utils/ReflectionMethod.php',
|
||||||
|
'Nette\\Utils\\RegexpException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Strings' => __DIR__ . '/..' . '/nette/utils/src/Utils/Strings.php',
|
||||||
|
'Nette\\Utils\\Type' => __DIR__ . '/..' . '/nette/utils/src/Utils/Type.php',
|
||||||
|
'Nette\\Utils\\UnknownImageFileException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||||
|
'Nette\\Utils\\Validators' => __DIR__ . '/..' . '/nette/utils/src/Utils/Validators.php',
|
||||||
|
'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||||
|
'Random\\BrokenRandomEngineError' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php',
|
||||||
|
'Random\\CryptoSafeEngine' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php',
|
||||||
|
'Random\\Engine' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/Engine.php',
|
||||||
|
'Random\\Engine\\Secure' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php',
|
||||||
|
'Random\\RandomError' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php',
|
||||||
|
'Random\\RandomException' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php',
|
||||||
|
'SensitiveParameter' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php',
|
||||||
|
'SensitiveParameterValue' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php',
|
||||||
|
'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||||
|
'UnhandledMatchError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
||||||
|
'ValueError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
||||||
|
);
|
||||||
|
|
||||||
|
public static function getInitializer(ClassLoader $loader)
|
||||||
|
{
|
||||||
|
return \Closure::bind(function () use ($loader) {
|
||||||
|
$loader->prefixLengthsPsr4 = ComposerStaticInit5ef62e2f7b2581def09f179153bef324::$prefixLengthsPsr4;
|
||||||
|
$loader->prefixDirsPsr4 = ComposerStaticInit5ef62e2f7b2581def09f179153bef324::$prefixDirsPsr4;
|
||||||
|
$loader->classMap = ComposerStaticInit5ef62e2f7b2581def09f179153bef324::$classMap;
|
||||||
|
|
||||||
|
}, null, ClassLoader::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,308 @@
|
|||||||
|
<?php return array(
|
||||||
|
'root' => array(
|
||||||
|
'name' => 'laysense/laysite',
|
||||||
|
'pretty_version' => '1.0.0+no-version-set',
|
||||||
|
'version' => '1.0.0.0',
|
||||||
|
'reference' => null,
|
||||||
|
'type' => 'project',
|
||||||
|
'install_path' => __DIR__ . '/../../',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev' => false,
|
||||||
|
),
|
||||||
|
'versions' => array(
|
||||||
|
'dflydev/dot-access-data' => array(
|
||||||
|
'pretty_version' => 'v3.0.3',
|
||||||
|
'version' => '3.0.3.0',
|
||||||
|
'reference' => 'a23a2bf4f31d3518f3ecb38660c95715dfead60f',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../dflydev/dot-access-data',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'firebase/php-jwt' => array(
|
||||||
|
'pretty_version' => 'v7.2.2',
|
||||||
|
'version' => '7.2.2.0',
|
||||||
|
'reference' => '99efeb17d6def8c0295777f2d45b07ff4fdb4e40',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../firebase/php-jwt',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'graham-campbell/result-type' => array(
|
||||||
|
'pretty_version' => 'v1.2.0',
|
||||||
|
'version' => '1.2.0.0',
|
||||||
|
'reference' => 'adccca3324eece92ca35463648c12b9e6293c05b',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../graham-campbell/result-type',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'guzzlehttp/guzzle' => array(
|
||||||
|
'pretty_version' => '8.5.5',
|
||||||
|
'version' => '8.5.5.0',
|
||||||
|
'reference' => 'd1a26e6ce24268e740af501de8748d1c945e6f4b',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'guzzlehttp/promises' => array(
|
||||||
|
'pretty_version' => '3.2.0',
|
||||||
|
'version' => '3.2.0.0',
|
||||||
|
'reference' => 'a201cc78db93065f891278f86eaeaa1c97c5a158',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../guzzlehttp/promises',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'guzzlehttp/psr7' => array(
|
||||||
|
'pretty_version' => '3.6.0',
|
||||||
|
'version' => '3.6.0.0',
|
||||||
|
'reference' => '1fa0f8319c046b7dec80030460254283d851388e',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../guzzlehttp/psr7',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'laysense/laysite' => array(
|
||||||
|
'pretty_version' => '1.0.0+no-version-set',
|
||||||
|
'version' => '1.0.0.0',
|
||||||
|
'reference' => null,
|
||||||
|
'type' => 'project',
|
||||||
|
'install_path' => __DIR__ . '/../../',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'league/commonmark' => array(
|
||||||
|
'pretty_version' => '2.10.7',
|
||||||
|
'version' => '2.10.7.0',
|
||||||
|
'reference' => '8eb53e906fd60c67038d22f1f1cab420ed58b8be',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../league/commonmark',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'league/config' => array(
|
||||||
|
'pretty_version' => 'v1.2.0',
|
||||||
|
'version' => '1.2.0.0',
|
||||||
|
'reference' => '754b3604fb2984c71f4af4a9cbe7b57f346ec1f3',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../league/config',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'league/oauth2-client' => array(
|
||||||
|
'pretty_version' => '2.10.0',
|
||||||
|
'version' => '2.10.0.0',
|
||||||
|
'reference' => '25d240c6804f975909f8cdd131345949d8642535',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../league/oauth2-client',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'monolog/monolog' => array(
|
||||||
|
'pretty_version' => '3.13.0',
|
||||||
|
'version' => '3.13.0.0',
|
||||||
|
'reference' => '1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../monolog/monolog',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'nette/schema' => array(
|
||||||
|
'pretty_version' => 'v1.4.0',
|
||||||
|
'version' => '1.4.0.0',
|
||||||
|
'reference' => 'af9fa8a86bfca9b02b10346220db26e62ef942ec',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../nette/schema',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'nette/utils' => array(
|
||||||
|
'pretty_version' => 'v4.1.6',
|
||||||
|
'version' => '4.1.6.0',
|
||||||
|
'reference' => '6bf24518accf32cf845bca305e0b92078700fd01',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../nette/utils',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'nikic/fast-route' => array(
|
||||||
|
'pretty_version' => '1.3.1',
|
||||||
|
'version' => '1.3.1.0',
|
||||||
|
'reference' => '7476684f39bb9124b3be69ed3d84b66723920298',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../nikic/fast-route',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'phpoption/phpoption' => array(
|
||||||
|
'pretty_version' => '1.10.0',
|
||||||
|
'version' => '1.10.0.0',
|
||||||
|
'reference' => '67b192b6a42ec03944b972d6e633ddec78ad2c6d',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../phpoption/phpoption',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/container' => array(
|
||||||
|
'pretty_version' => '2.0.2',
|
||||||
|
'version' => '2.0.2.0',
|
||||||
|
'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../psr/container',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/event-dispatcher' => array(
|
||||||
|
'pretty_version' => '1.0.0',
|
||||||
|
'version' => '1.0.0.0',
|
||||||
|
'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../psr/event-dispatcher',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/http-client' => array(
|
||||||
|
'pretty_version' => '1.0.3',
|
||||||
|
'version' => '1.0.3.0',
|
||||||
|
'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../psr/http-client',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/http-client-implementation' => array(
|
||||||
|
'dev_requirement' => false,
|
||||||
|
'provided' => array(
|
||||||
|
0 => '1.0',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'psr/http-factory' => array(
|
||||||
|
'pretty_version' => '1.1.0',
|
||||||
|
'version' => '1.1.0.0',
|
||||||
|
'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../psr/http-factory',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/http-factory-implementation' => array(
|
||||||
|
'dev_requirement' => false,
|
||||||
|
'provided' => array(
|
||||||
|
0 => '1.1',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'psr/http-message' => array(
|
||||||
|
'pretty_version' => '2.0',
|
||||||
|
'version' => '2.0.0.0',
|
||||||
|
'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../psr/http-message',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/http-message-implementation' => array(
|
||||||
|
'dev_requirement' => false,
|
||||||
|
'provided' => array(
|
||||||
|
0 => '2.0',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'psr/log' => array(
|
||||||
|
'pretty_version' => '3.0.2',
|
||||||
|
'version' => '3.0.2.0',
|
||||||
|
'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../psr/log',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'psr/log-implementation' => array(
|
||||||
|
'dev_requirement' => false,
|
||||||
|
'provided' => array(
|
||||||
|
0 => '3.0.0',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'symfony/deprecation-contracts' => array(
|
||||||
|
'pretty_version' => 'v3.8.1',
|
||||||
|
'version' => '3.8.1.0',
|
||||||
|
'reference' => 'feb1edf4e546af3b85c5caebe8359a20db230ca3',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'symfony/polyfill-ctype' => array(
|
||||||
|
'pretty_version' => 'v1.37.0',
|
||||||
|
'version' => '1.37.0.0',
|
||||||
|
'reference' => '141046a8f9477948ff284fa65be2095baafb94f2',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'symfony/polyfill-mbstring' => array(
|
||||||
|
'pretty_version' => 'v1.43.3',
|
||||||
|
'version' => '1.43.3.0',
|
||||||
|
'reference' => '122889ed24dc000165bcbfd77ec412f15cbdfc6a',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'symfony/polyfill-php80' => array(
|
||||||
|
'pretty_version' => 'v1.43.0',
|
||||||
|
'version' => '1.43.0.0',
|
||||||
|
'reference' => '9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../symfony/polyfill-php80',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'symfony/polyfill-php82' => array(
|
||||||
|
'pretty_version' => 'v1.43.0',
|
||||||
|
'version' => '1.43.0.0',
|
||||||
|
'reference' => '843bbe8b2a7934307b749751eede0f111f5d1cfc',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../symfony/polyfill-php82',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'vlucas/phpdotenv' => array(
|
||||||
|
'pretty_version' => 'v5.8.1',
|
||||||
|
'version' => '5.8.1.0',
|
||||||
|
'reference' => 'ba37876e98122ca15151247ce1187d20ee8bf4e0',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../vlucas/phpdotenv',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'workerman/coroutine' => array(
|
||||||
|
'pretty_version' => 'v1.1.7',
|
||||||
|
'version' => '1.1.7.0',
|
||||||
|
'reference' => '68a905d50f7ec1efcedc1ec317a75dcc3dea3f0f',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../workerman/coroutine',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'workerman/webman-framework' => array(
|
||||||
|
'pretty_version' => 'v2.2.5',
|
||||||
|
'version' => '2.2.5.0',
|
||||||
|
'reference' => '263ef955d8ba6a0cb6fbc1bd0912589ed67c0c8d',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../workerman/webman-framework',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
'workerman/workerman' => array(
|
||||||
|
'pretty_version' => 'v5.2.4',
|
||||||
|
'version' => '5.2.4.0',
|
||||||
|
'reference' => '4c817dec82c9ea223879b019600db58f62199abc',
|
||||||
|
'type' => 'library',
|
||||||
|
'install_path' => __DIR__ . '/../workerman/workerman',
|
||||||
|
'aliases' => array(),
|
||||||
|
'dev_requirement' => false,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// platform_check.php @generated by Composer
|
||||||
|
|
||||||
|
$issues = array();
|
||||||
|
|
||||||
|
if (!(PHP_VERSION_ID >= 80200)) {
|
||||||
|
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($issues) {
|
||||||
|
if (!headers_sent()) {
|
||||||
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
|
}
|
||||||
|
if (!ini_get('display_errors')) {
|
||||||
|
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||||
|
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
||||||
|
} elseif (!headers_sent()) {
|
||||||
|
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new \RuntimeException(
|
||||||
|
'Composer detected issues in your platform: ' . implode(' ', $issues)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [3.0.3] - 2024-07-08
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed PHP 8.4 deprecation notices (#47)
|
||||||
|
|
||||||
|
## [3.0.2] - 2022-10-27
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Added missing return types to docblocks (#44, #45)
|
||||||
|
|
||||||
|
## [3.0.1] - 2021-08-13
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Adds ReturnTypeWillChange to suppress PHP 8.1 warnings (#40)
|
||||||
|
|
||||||
|
## [3.0.0] - 2021-01-01
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Added support for both `.` and `/`-delimited key paths (#24)
|
||||||
|
- Added parameter and return types to everything; enabled strict type checks (#18)
|
||||||
|
- Added new exception classes to better identify certain types of errors (#20)
|
||||||
|
- `Data` now implements `ArrayAccess` (#17)
|
||||||
|
- Added ability to merge non-associative array values (#31, #32)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- All thrown exceptions are now instances or subclasses of `DataException` (#20)
|
||||||
|
- Calling `get()` on a missing key path without providing a default will throw a `MissingPathException` instead of returning `null` (#29)
|
||||||
|
- Bumped supported PHP versions to 7.1 - 8.x (#18)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed incorrect merging of array values into string values (#32)
|
||||||
|
- Fixed `get()` method behaving as if keys with `null` values didn't exist
|
||||||
|
|
||||||
|
## [2.0.0] - 2017-12-21
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Bumped supported PHP versions to 7.0 - 7.4 (#12)
|
||||||
|
- Switched to PSR-4 autoloading
|
||||||
|
|
||||||
|
## [1.1.0] - 2017-01-20
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Added new `has()` method to check for the existence of the given key (#4, #7)
|
||||||
|
|
||||||
|
## [1.0.1] - 2015-08-12
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Added new optional `$default` parameter to the `get()` method (#2)
|
||||||
|
|
||||||
|
## [1.0.0] - 2012-07-17
|
||||||
|
|
||||||
|
**Initial release!**
|
||||||
|
|
||||||
|
[Unreleased]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.3...main
|
||||||
|
[3.0.3]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.2...v3.0.3
|
||||||
|
[3.0.2]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.1...v3.0.2
|
||||||
|
[3.0.1]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.0...v3.0.1
|
||||||
|
[3.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v2.0.0...v3.0.0
|
||||||
|
[2.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.1.0...v2.0.0
|
||||||
|
[1.1.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.0.1...v1.1.0
|
||||||
|
[1.0.1]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.0.0...v1.0.1
|
||||||
|
[1.0.0]: https://github.com/dflydev/dflydev-dot-access-data/releases/tag/v1.0.0
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2012 Dragonfly Development Inc.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
@@ -0,0 +1,158 @@
|
|||||||
|
Dot Access Data
|
||||||
|
===============
|
||||||
|
|
||||||
|
[](https://packagist.org/packages/dflydev/dot-access-data)
|
||||||
|
[](https://packagist.org/packages/dflydev/dot-access-data)
|
||||||
|
[](LICENSE)
|
||||||
|
[](https://github.com/dflydev/dflydev-dot-access-data/actions?query=workflow%3ATests+branch%3Amain)
|
||||||
|
[](https://scrutinizer-ci.com/g/dflydev/dflydev-dot-access-data/code-structure/)
|
||||||
|
[](https://scrutinizer-ci.com/g/dflydev/dflydev-dot-access-data)
|
||||||
|
|
||||||
|
Given a deep data structure, access data by dot notation.
|
||||||
|
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
* PHP (7.1+)
|
||||||
|
|
||||||
|
> For PHP (5.3+) please refer to version `1.0`.
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
Abstract example:
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Dflydev\DotAccessData\Data;
|
||||||
|
|
||||||
|
$data = new Data;
|
||||||
|
|
||||||
|
$data->set('a.b.c', 'C');
|
||||||
|
$data->set('a.b.d', 'D1');
|
||||||
|
$data->append('a.b.d', 'D2');
|
||||||
|
$data->set('a.b.e', ['E0', 'E1', 'E2']);
|
||||||
|
|
||||||
|
// C
|
||||||
|
$data->get('a.b.c');
|
||||||
|
|
||||||
|
// ['D1', 'D2']
|
||||||
|
$data->get('a.b.d');
|
||||||
|
|
||||||
|
// ['E0', 'E1', 'E2']
|
||||||
|
$data->get('a.b.e');
|
||||||
|
|
||||||
|
// true
|
||||||
|
$data->has('a.b.c');
|
||||||
|
|
||||||
|
// false
|
||||||
|
$data->has('a.b.d.j');
|
||||||
|
|
||||||
|
|
||||||
|
// 'some-default-value'
|
||||||
|
$data->get('some.path.that.does.not.exist', 'some-default-value');
|
||||||
|
|
||||||
|
// throws a MissingPathException because no default was given
|
||||||
|
$data->get('some.path.that.does.not.exist');
|
||||||
|
```
|
||||||
|
|
||||||
|
A more concrete example:
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Dflydev\DotAccessData\Data;
|
||||||
|
|
||||||
|
$data = new Data([
|
||||||
|
'hosts' => [
|
||||||
|
'hewey' => [
|
||||||
|
'username' => 'hman',
|
||||||
|
'password' => 'HPASS',
|
||||||
|
'roles' => ['web'],
|
||||||
|
],
|
||||||
|
'dewey' => [
|
||||||
|
'username' => 'dman',
|
||||||
|
'password' => 'D---S',
|
||||||
|
'roles' => ['web', 'db'],
|
||||||
|
'nick' => 'dewey dman',
|
||||||
|
],
|
||||||
|
'lewey' => [
|
||||||
|
'username' => 'lman',
|
||||||
|
'password' => 'LP@$$',
|
||||||
|
'roles' => ['db'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
|
||||||
|
// hman
|
||||||
|
$username = $data->get('hosts.hewey.username');
|
||||||
|
// HPASS
|
||||||
|
$password = $data->get('hosts.hewey.password');
|
||||||
|
// ['web']
|
||||||
|
$roles = $data->get('hosts.hewey.roles');
|
||||||
|
// dewey dman
|
||||||
|
$nick = $data->get('hosts.dewey.nick');
|
||||||
|
// Unknown
|
||||||
|
$nick = $data->get('hosts.lewey.nick', 'Unknown');
|
||||||
|
|
||||||
|
// DataInterface instance
|
||||||
|
$dewey = $data->getData('hosts.dewey');
|
||||||
|
// dman
|
||||||
|
$username = $dewey->get('username');
|
||||||
|
// D---S
|
||||||
|
$password = $dewey->get('password');
|
||||||
|
// ['web', 'db']
|
||||||
|
$roles = $dewey->get('roles');
|
||||||
|
|
||||||
|
// No more lewey
|
||||||
|
$data->remove('hosts.lewey');
|
||||||
|
|
||||||
|
// Add DB to hewey's roles
|
||||||
|
$data->append('hosts.hewey.roles', 'db');
|
||||||
|
|
||||||
|
$data->set('hosts.april', [
|
||||||
|
'username' => 'aman',
|
||||||
|
'password' => '@---S',
|
||||||
|
'roles' => ['web'],
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Check if a key exists (true to this case)
|
||||||
|
$hasKey = $data->has('hosts.dewey.username');
|
||||||
|
```
|
||||||
|
|
||||||
|
`Data` may be used as an array, since it implements `ArrayAccess` interface:
|
||||||
|
|
||||||
|
```php
|
||||||
|
// Get
|
||||||
|
$data->get('name') === $data['name']; // true
|
||||||
|
|
||||||
|
$data['name'] = 'Dewey';
|
||||||
|
// is equivalent to
|
||||||
|
$data->set($name, 'Dewey');
|
||||||
|
|
||||||
|
isset($data['name']) === $data->has('name');
|
||||||
|
|
||||||
|
// Remove key
|
||||||
|
unset($data['name']);
|
||||||
|
```
|
||||||
|
|
||||||
|
`/` can also be used as a path delimiter:
|
||||||
|
|
||||||
|
```php
|
||||||
|
$data->set('a/b/c', 'd');
|
||||||
|
echo $data->get('a/b/c'); // "d"
|
||||||
|
|
||||||
|
$data->get('a/b/c') === $data->get('a.b.c'); // true
|
||||||
|
```
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
This library is licensed under the MIT License - see the LICENSE file
|
||||||
|
for details.
|
||||||
|
|
||||||
|
|
||||||
|
Community
|
||||||
|
---------
|
||||||
|
|
||||||
|
If you have questions or want to help out, join us in the
|
||||||
|
[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
"name": "dflydev/dot-access-data",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Given a deep data structure, access data by dot notation.",
|
||||||
|
"homepage": "https://github.com/dflydev/dflydev-dot-access-data",
|
||||||
|
"keywords": ["dot", "access", "data", "notation"],
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Dragonfly Development Inc.",
|
||||||
|
"email": "info@dflydev.com",
|
||||||
|
"homepage": "http://dflydev.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Beau Simensen",
|
||||||
|
"email": "beau@dflydev.com",
|
||||||
|
"homepage": "http://beausimensen.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Carlos Frutos",
|
||||||
|
"email": "carlos@kiwing.it",
|
||||||
|
"homepage": "https://github.com/cfrutos"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Colin O'Dell",
|
||||||
|
"email": "colinodell@gmail.com",
|
||||||
|
"homepage": "https://www.colinodell.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": "^7.1 || ^8.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpstan/phpstan": "^0.12.42",
|
||||||
|
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
|
||||||
|
"scrutinizer/ocular": "1.6.0",
|
||||||
|
"squizlabs/php_codesniffer": "^3.5",
|
||||||
|
"vimeo/psalm": "^4.0.0"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Dflydev\\DotAccessData\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"Dflydev\\DotAccessData\\": "tests/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-main": "3.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"phpcs": "phpcs",
|
||||||
|
"phpstan": "phpstan analyse",
|
||||||
|
"phpunit": "phpunit --no-coverage",
|
||||||
|
"psalm": "psalm",
|
||||||
|
"test": [
|
||||||
|
"@phpcs",
|
||||||
|
"@phpstan",
|
||||||
|
"@psalm",
|
||||||
|
"@phpunit"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,286 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is a part of dflydev/dot-access-data.
|
||||||
|
*
|
||||||
|
* (c) Dragonfly Development Inc.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Dflydev\DotAccessData;
|
||||||
|
|
||||||
|
use ArrayAccess;
|
||||||
|
use Dflydev\DotAccessData\Exception\DataException;
|
||||||
|
use Dflydev\DotAccessData\Exception\InvalidPathException;
|
||||||
|
use Dflydev\DotAccessData\Exception\MissingPathException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @implements ArrayAccess<string, mixed>
|
||||||
|
*/
|
||||||
|
class Data implements DataInterface, ArrayAccess
|
||||||
|
{
|
||||||
|
private const DELIMITERS = ['.', '/'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal representation of data data
|
||||||
|
*
|
||||||
|
* @var array<string, mixed>
|
||||||
|
*/
|
||||||
|
protected $data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $data
|
||||||
|
*/
|
||||||
|
public function __construct(array $data = [])
|
||||||
|
{
|
||||||
|
$this->data = $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function append(string $key, $value = null): void
|
||||||
|
{
|
||||||
|
$currentValue =& $this->data;
|
||||||
|
$keyPath = self::keyToPathArray($key);
|
||||||
|
|
||||||
|
$endKey = array_pop($keyPath);
|
||||||
|
foreach ($keyPath as $currentKey) {
|
||||||
|
if (! isset($currentValue[$currentKey])) {
|
||||||
|
$currentValue[$currentKey] = [];
|
||||||
|
}
|
||||||
|
$currentValue =& $currentValue[$currentKey];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($currentValue[$endKey])) {
|
||||||
|
$currentValue[$endKey] = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!is_array($currentValue[$endKey])) {
|
||||||
|
// Promote this key to an array.
|
||||||
|
// TODO: Is this really what we want to do?
|
||||||
|
$currentValue[$endKey] = [$currentValue[$endKey]];
|
||||||
|
}
|
||||||
|
|
||||||
|
$currentValue[$endKey][] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function set(string $key, $value = null): void
|
||||||
|
{
|
||||||
|
$currentValue =& $this->data;
|
||||||
|
$keyPath = self::keyToPathArray($key);
|
||||||
|
|
||||||
|
$endKey = array_pop($keyPath);
|
||||||
|
foreach ($keyPath as $currentKey) {
|
||||||
|
if (!isset($currentValue[$currentKey])) {
|
||||||
|
$currentValue[$currentKey] = [];
|
||||||
|
}
|
||||||
|
if (!is_array($currentValue[$currentKey])) {
|
||||||
|
throw new DataException(sprintf('Key path "%s" within "%s" cannot be indexed into (is not an array)', $currentKey, self::formatPath($key)));
|
||||||
|
}
|
||||||
|
$currentValue =& $currentValue[$currentKey];
|
||||||
|
}
|
||||||
|
$currentValue[$endKey] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function remove(string $key): void
|
||||||
|
{
|
||||||
|
$currentValue =& $this->data;
|
||||||
|
$keyPath = self::keyToPathArray($key);
|
||||||
|
|
||||||
|
$endKey = array_pop($keyPath);
|
||||||
|
foreach ($keyPath as $currentKey) {
|
||||||
|
if (!isset($currentValue[$currentKey])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$currentValue =& $currentValue[$currentKey];
|
||||||
|
}
|
||||||
|
unset($currentValue[$endKey]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function get(string $key, $default = null)
|
||||||
|
{
|
||||||
|
/** @psalm-suppress ImpureFunctionCall */
|
||||||
|
$hasDefault = \func_num_args() > 1;
|
||||||
|
|
||||||
|
$currentValue = $this->data;
|
||||||
|
$keyPath = self::keyToPathArray($key);
|
||||||
|
|
||||||
|
foreach ($keyPath as $currentKey) {
|
||||||
|
if (!is_array($currentValue) || !array_key_exists($currentKey, $currentValue)) {
|
||||||
|
if ($hasDefault) {
|
||||||
|
return $default;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new MissingPathException($key, sprintf('No data exists at the given path: "%s"', self::formatPath($keyPath)));
|
||||||
|
}
|
||||||
|
|
||||||
|
$currentValue = $currentValue[$currentKey];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $currentValue === null ? $default : $currentValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function has(string $key): bool
|
||||||
|
{
|
||||||
|
$currentValue = $this->data;
|
||||||
|
|
||||||
|
foreach (self::keyToPathArray($key) as $currentKey) {
|
||||||
|
if (
|
||||||
|
!is_array($currentValue) ||
|
||||||
|
!array_key_exists($currentKey, $currentValue)
|
||||||
|
) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$currentValue = $currentValue[$currentKey];
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function getData(string $key): DataInterface
|
||||||
|
{
|
||||||
|
$value = $this->get($key);
|
||||||
|
if (is_array($value) && Util::isAssoc($value)) {
|
||||||
|
return new Data($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new DataException(sprintf('Value at "%s" could not be represented as a DataInterface', self::formatPath($key)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function import(array $data, int $mode = self::REPLACE): void
|
||||||
|
{
|
||||||
|
$this->data = Util::mergeAssocArray($this->data, $data, $mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function importData(DataInterface $data, int $mode = self::REPLACE): void
|
||||||
|
{
|
||||||
|
$this->import($data->export(), $mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function export(): array
|
||||||
|
{
|
||||||
|
return $this->data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
|
public function offsetExists($key)
|
||||||
|
{
|
||||||
|
return $this->has($key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
|
public function offsetGet($key)
|
||||||
|
{
|
||||||
|
return $this->get($key, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
* @param mixed $value
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
|
public function offsetSet($key, $value)
|
||||||
|
{
|
||||||
|
$this->set($key, $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
|
public function offsetUnset($key)
|
||||||
|
{
|
||||||
|
$this->remove($key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $path
|
||||||
|
*
|
||||||
|
* @return string[]
|
||||||
|
*
|
||||||
|
* @psalm-return non-empty-list<string>
|
||||||
|
*
|
||||||
|
* @psalm-pure
|
||||||
|
*/
|
||||||
|
protected static function keyToPathArray(string $path): array
|
||||||
|
{
|
||||||
|
if (\strlen($path) === 0) {
|
||||||
|
throw new InvalidPathException('Path cannot be an empty string');
|
||||||
|
}
|
||||||
|
|
||||||
|
$path = \str_replace(self::DELIMITERS, '.', $path);
|
||||||
|
|
||||||
|
return \explode('.', $path);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|string[] $path
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @psalm-pure
|
||||||
|
*/
|
||||||
|
protected static function formatPath($path): string
|
||||||
|
{
|
||||||
|
if (is_string($path)) {
|
||||||
|
$path = self::keyToPathArray($path);
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode(' » ', $path);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,131 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is a part of dflydev/dot-access-data.
|
||||||
|
*
|
||||||
|
* (c) Dragonfly Development Inc.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Dflydev\DotAccessData;
|
||||||
|
|
||||||
|
use Dflydev\DotAccessData\Exception\DataException;
|
||||||
|
use Dflydev\DotAccessData\Exception\InvalidPathException;
|
||||||
|
|
||||||
|
interface DataInterface
|
||||||
|
{
|
||||||
|
public const PRESERVE = 0;
|
||||||
|
public const REPLACE = 1;
|
||||||
|
public const MERGE = 2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Append a value to a key (assumes key refers to an array value)
|
||||||
|
*
|
||||||
|
* If the key does not yet exist it will be created.
|
||||||
|
* If the key references a non-array it's existing contents will be added into a new array before appending the new value.
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
* @param mixed $value
|
||||||
|
*
|
||||||
|
* @throws InvalidPathException if the given key is empty
|
||||||
|
*/
|
||||||
|
public function append(string $key, $value = null): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a value for a key
|
||||||
|
*
|
||||||
|
* If the key does not yet exist it will be created.
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
* @param mixed $value
|
||||||
|
*
|
||||||
|
* @throws InvalidPathException if the given key is empty
|
||||||
|
* @throws DataException if the given key does not target an array
|
||||||
|
*/
|
||||||
|
public function set(string $key, $value = null): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a key
|
||||||
|
*
|
||||||
|
* No exception will be thrown if the key does not exist
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
*
|
||||||
|
* @throws InvalidPathException if the given key is empty
|
||||||
|
*/
|
||||||
|
public function remove(string $key): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the raw value for a key
|
||||||
|
*
|
||||||
|
* If the key does not exist, an optional default value can be returned instead.
|
||||||
|
* If no default is provided then an exception will be thrown instead.
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
* @param mixed $default
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @throws InvalidPathException if the given key is empty
|
||||||
|
* @throws InvalidPathException if the given key does not exist and no default value was given
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function get(string $key, $default = null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the key exists
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*
|
||||||
|
* @throws InvalidPathException if the given key is empty
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function has(string $key): bool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a data instance for a key
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
*
|
||||||
|
* @return DataInterface
|
||||||
|
*
|
||||||
|
* @throws InvalidPathException if the given key is empty
|
||||||
|
* @throws DataException if the given key does not reference an array
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function getData(string $key): DataInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import data into existing data
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $data
|
||||||
|
* @param self::PRESERVE|self::REPLACE|self::MERGE $mode
|
||||||
|
*/
|
||||||
|
public function import(array $data, int $mode = self::REPLACE): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import data from an external data into existing data
|
||||||
|
*
|
||||||
|
* @param DataInterface $data
|
||||||
|
* @param self::PRESERVE|self::REPLACE|self::MERGE $mode
|
||||||
|
*/
|
||||||
|
public function importData(DataInterface $data, int $mode = self::REPLACE): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Export data as raw data
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*
|
||||||
|
* @psalm-mutation-free
|
||||||
|
*/
|
||||||
|
public function export(): array;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is a part of dflydev/dot-access-data.
|
||||||
|
*
|
||||||
|
* (c) Dragonfly Development Inc.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Dflydev\DotAccessData\Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base runtime exception type thrown by this library
|
||||||
|
*/
|
||||||
|
class DataException extends \RuntimeException
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is a part of dflydev/dot-access-data.
|
||||||
|
*
|
||||||
|
* (c) Dragonfly Development Inc.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Dflydev\DotAccessData\Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Thrown when trying to access an invalid path in the data array
|
||||||
|
*/
|
||||||
|
class InvalidPathException extends DataException
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is a part of dflydev/dot-access-data.
|
||||||
|
*
|
||||||
|
* (c) Dragonfly Development Inc.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Dflydev\DotAccessData\Exception;
|
||||||
|
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Thrown when trying to access a path that does not exist
|
||||||
|
*/
|
||||||
|
class MissingPathException extends DataException
|
||||||
|
{
|
||||||
|
/** @var string */
|
||||||
|
protected $path;
|
||||||
|
|
||||||
|
public function __construct(string $path, string $message = '', int $code = 0, ?Throwable $previous = null)
|
||||||
|
{
|
||||||
|
$this->path = $path;
|
||||||
|
|
||||||
|
parent::__construct($message, $code, $previous);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPath(): string
|
||||||
|
{
|
||||||
|
return $this->path;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is a part of dflydev/dot-access-data.
|
||||||
|
*
|
||||||
|
* (c) Dragonfly Development Inc.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Dflydev\DotAccessData;
|
||||||
|
|
||||||
|
class Util
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Test if array is an associative array
|
||||||
|
*
|
||||||
|
* Note that this function will return true if an array is empty. Meaning
|
||||||
|
* empty arrays will be treated as if they are associative arrays.
|
||||||
|
*
|
||||||
|
* @param array<mixed> $arr
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*
|
||||||
|
* @psalm-pure
|
||||||
|
*/
|
||||||
|
public static function isAssoc(array $arr): bool
|
||||||
|
{
|
||||||
|
return !count($arr) || count(array_filter(array_keys($arr), 'is_string')) == count($arr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Merge contents from one associtative array to another
|
||||||
|
*
|
||||||
|
* @param mixed $to
|
||||||
|
* @param mixed $from
|
||||||
|
* @param DataInterface::PRESERVE|DataInterface::REPLACE|DataInterface::MERGE $mode
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*
|
||||||
|
* @psalm-pure
|
||||||
|
*/
|
||||||
|
public static function mergeAssocArray($to, $from, int $mode = DataInterface::REPLACE)
|
||||||
|
{
|
||||||
|
if ($mode === DataInterface::MERGE && self::isList($to) && self::isList($from)) {
|
||||||
|
return array_merge($to, $from);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($from) && is_array($to)) {
|
||||||
|
foreach ($from as $k => $v) {
|
||||||
|
if (!isset($to[$k])) {
|
||||||
|
$to[$k] = $v;
|
||||||
|
} else {
|
||||||
|
$to[$k] = self::mergeAssocArray($to[$k], $v, $mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $to;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $mode === DataInterface::PRESERVE ? $to : $from;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed $value
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*
|
||||||
|
* @psalm-pure
|
||||||
|
*/
|
||||||
|
private static function isList($value): bool
|
||||||
|
{
|
||||||
|
return is_array($value) && array_values($value) === $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,272 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## [7.1.1](https://github.com/googleapis/php-jwt/compare/v7.1.0...v7.1.1) (2026-09-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Limit the number of segments a JWT can be exploded into ([#639](https://github.com/googleapis/php-jwt/issues/639)) ([93d248c](https://github.com/googleapis/php-jwt/commit/93d248c650aea615d74a5ffa20c91c7a818e9b8d))
|
||||||
|
|
||||||
|
## [7.1.0](https://github.com/googleapis/php-jwt/compare/v7.0.5...v7.1.0) (2026-06-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add support for PS256 ([#637](https://github.com/googleapis/php-jwt/issues/637)) ([aa0b447](https://github.com/googleapis/php-jwt/commit/aa0b4472c137255545b177a1840891304eac55f1))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Skip parsing valid unsupported curves ([#638](https://github.com/googleapis/php-jwt/issues/638)) ([8a6c2a7](https://github.com/googleapis/php-jwt/commit/8a6c2a75d7f45e781c93d618939f8a045fe69f53))
|
||||||
|
* Update homepage URL in composer.json ([#635](https://github.com/googleapis/php-jwt/issues/635)) ([f7ae571](https://github.com/googleapis/php-jwt/commit/f7ae571efe255aed89c8f8d0f2cb7f71c5835664))
|
||||||
|
* Validate numeric type of iat, nbf and exp claims in encode ([#634](https://github.com/googleapis/php-jwt/issues/634)) ([958e422](https://github.com/googleapis/php-jwt/commit/958e422961e874843a7fcc339e55a0101a66201d))
|
||||||
|
|
||||||
|
## [7.0.5](https://github.com/firebase/php-jwt/compare/v7.0.4...v7.0.5) (2026-03-31)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* RSA from JWK sometimes returns empty Instance ([#628](https://github.com/firebase/php-jwt/issues/628)) ([b4c78aa](https://github.com/firebase/php-jwt/commit/b4c78aa731664122198ad36c0033aa29e807397a))
|
||||||
|
|
||||||
|
## [7.0.4](https://github.com/firebase/php-jwt/compare/v7.0.3...v7.0.4) (2026-03-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* readme examples, add tests for all examples ([#626](https://github.com/firebase/php-jwt/issues/626)) ([510a00c](https://github.com/firebase/php-jwt/commit/510a00c0e6353bc7d68412fab67e57a13954cb46))
|
||||||
|
* use urlsafeB64Decode everywhere ([#627](https://github.com/firebase/php-jwt/issues/627)) ([b889495](https://github.com/firebase/php-jwt/commit/b889495c83ddc3f3885ca3f0b65b41b1cb37a3b1))
|
||||||
|
|
||||||
|
## [7.0.3](https://github.com/firebase/php-jwt/compare/v7.0.2...v7.0.3) (2026-02-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Miscellaneous Chores
|
||||||
|
|
||||||
|
* add environment for Release Please job ([#619](https://github.com/firebase/php-jwt/issues/619)) ([300fd02](https://github.com/firebase/php-jwt/commit/300fd02c883f096c9067df652dbd23f62cb5e2a7))
|
||||||
|
|
||||||
|
## [7.0.2](https://github.com/firebase/php-jwt/compare/v7.0.1...v7.0.2) (2025-12-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add key length validation for ec keys ([#615](https://github.com/firebase/php-jwt/issues/615)) ([7044f9a](https://github.com/firebase/php-jwt/commit/7044f9ae7e7d175d28cca71714feb236f1c0e252))
|
||||||
|
|
||||||
|
## [7.0.0](https://github.com/firebase/php-jwt/compare/v6.11.1...v7.0.0) (2025-12-15)
|
||||||
|
|
||||||
|
|
||||||
|
### ⚠️ ⚠️ ⚠️ Security Fixes ⚠️ ⚠️ ⚠️
|
||||||
|
* add key size validation ([#613](https://github.com/firebase/php-jwt/issues/613)) ([6b80341](https://github.com/firebase/php-jwt/commit/6b80341bf57838ea2d011487917337901cd71576))
|
||||||
|
**NOTE**: This fix will cause keys with a size below the minimally allowed size to break.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add SensitiveParameter attribute to security-critical parameters ([#603](https://github.com/firebase/php-jwt/issues/603)) ([4dbfac0](https://github.com/firebase/php-jwt/commit/4dbfac0260eeb0e9e643063c99998e3219cc539b))
|
||||||
|
* store timestamp in `ExpiredException` ([#604](https://github.com/firebase/php-jwt/issues/604)) ([f174826](https://github.com/firebase/php-jwt/commit/f1748260d218a856b6a0c23715ac7fae1d7ca95b))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* validate iat and nbf on payload ([#568](https://github.com/firebase/php-jwt/issues/568)) ([953b2c8](https://github.com/firebase/php-jwt/commit/953b2c88bb445b7e3bb82a5141928f13d7343afd))
|
||||||
|
|
||||||
|
## [6.11.1](https://github.com/firebase/php-jwt/compare/v6.11.0...v6.11.1) (2025-04-09)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* update error text for consistency ([#528](https://github.com/firebase/php-jwt/issues/528)) ([c11113a](https://github.com/firebase/php-jwt/commit/c11113afa13265e016a669e75494b9203b8a7775))
|
||||||
|
|
||||||
|
## [6.11.0](https://github.com/firebase/php-jwt/compare/v6.10.2...v6.11.0) (2025-01-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* support octet typed JWK ([#587](https://github.com/firebase/php-jwt/issues/587)) ([7cb8a26](https://github.com/firebase/php-jwt/commit/7cb8a265fa81edf2fa6ef8098f5bc5ae573c33ad))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* refactor constructor Key to use PHP 8.0 syntax ([#577](https://github.com/firebase/php-jwt/issues/577)) ([29fa2ce](https://github.com/firebase/php-jwt/commit/29fa2ce9e0582cd397711eec1e80c05ce20fabca))
|
||||||
|
|
||||||
|
## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
|
||||||
|
* support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
|
||||||
|
|
||||||
|
## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* ensure ratelimit expiry is set every time ([#556](https://github.com/firebase/php-jwt/issues/556)) ([09cb208](https://github.com/firebase/php-jwt/commit/09cb2081c2c3bc0f61e2f2a5fbea5741f7498648))
|
||||||
|
* ratelimit cache expiration ([#550](https://github.com/firebase/php-jwt/issues/550)) ([dda7250](https://github.com/firebase/php-jwt/commit/dda725033585ece30ff8cae8937320d7e9f18bae))
|
||||||
|
|
||||||
|
## [6.10.0](https://github.com/firebase/php-jwt/compare/v6.9.0...v6.10.0) (2023-11-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* allow typ header override ([#546](https://github.com/firebase/php-jwt/issues/546)) ([79cb30b](https://github.com/firebase/php-jwt/commit/79cb30b729a22931b2fbd6b53f20629a83031ba9))
|
||||||
|
|
||||||
|
## [6.9.0](https://github.com/firebase/php-jwt/compare/v6.8.1...v6.9.0) (2023-10-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add payload to jwt exception ([#521](https://github.com/firebase/php-jwt/issues/521)) ([175edf9](https://github.com/firebase/php-jwt/commit/175edf958bb61922ec135b2333acf5622f2238a2))
|
||||||
|
|
||||||
|
## [6.8.1](https://github.com/firebase/php-jwt/compare/v6.8.0...v6.8.1) (2023-07-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* accept float claims but round down to ignore them ([#492](https://github.com/firebase/php-jwt/issues/492)) ([3936842](https://github.com/firebase/php-jwt/commit/39368423beeaacb3002afa7dcb75baebf204fe7e))
|
||||||
|
* different BeforeValidException messages for nbf and iat ([#526](https://github.com/firebase/php-jwt/issues/526)) ([0a53cf2](https://github.com/firebase/php-jwt/commit/0a53cf2986e45c2bcbf1a269f313ebf56a154ee4))
|
||||||
|
|
||||||
|
## [6.8.0](https://github.com/firebase/php-jwt/compare/v6.7.0...v6.8.0) (2023-06-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add support for P-384 curve ([#515](https://github.com/firebase/php-jwt/issues/515)) ([5de4323](https://github.com/firebase/php-jwt/commit/5de4323f4baf4d70bca8663bd87682a69c656c3d))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* handle invalid http responses ([#508](https://github.com/firebase/php-jwt/issues/508)) ([91c39c7](https://github.com/firebase/php-jwt/commit/91c39c72b22fc3e1191e574089552c1f2041c718))
|
||||||
|
|
||||||
|
## [6.7.0](https://github.com/firebase/php-jwt/compare/v6.6.0...v6.7.0) (2023-06-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add ed25519 support to JWK (public keys) ([#452](https://github.com/firebase/php-jwt/issues/452)) ([e53979a](https://github.com/firebase/php-jwt/commit/e53979abae927de916a75b9d239cfda8ce32be2a))
|
||||||
|
|
||||||
|
## [6.6.0](https://github.com/firebase/php-jwt/compare/v6.5.0...v6.6.0) (2023-06-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* allow get headers when decoding token ([#442](https://github.com/firebase/php-jwt/issues/442)) ([fb85f47](https://github.com/firebase/php-jwt/commit/fb85f47cfaeffdd94faf8defdf07164abcdad6c3))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* only check iat if nbf is not used ([#493](https://github.com/firebase/php-jwt/issues/493)) ([398ccd2](https://github.com/firebase/php-jwt/commit/398ccd25ea12fa84b9e4f1085d5ff448c21ec797))
|
||||||
|
|
||||||
|
## [6.5.0](https://github.com/firebase/php-jwt/compare/v6.4.0...v6.5.0) (2023-05-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* allow KID of '0' ([#505](https://github.com/firebase/php-jwt/issues/505)) ([9dc46a9](https://github.com/firebase/php-jwt/commit/9dc46a9c3e5801294249cfd2554c5363c9f9326a))
|
||||||
|
|
||||||
|
|
||||||
|
### Miscellaneous Chores
|
||||||
|
|
||||||
|
* drop support for PHP 7.3 ([#495](https://github.com/firebase/php-jwt/issues/495))
|
||||||
|
|
||||||
|
## [6.4.0](https://github.com/firebase/php-jwt/compare/v6.3.2...v6.4.0) (2023-02-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add support for W3C ES256K ([#462](https://github.com/firebase/php-jwt/issues/462)) ([213924f](https://github.com/firebase/php-jwt/commit/213924f51936291fbbca99158b11bd4ae56c2c95))
|
||||||
|
* improve caching by only decoding jwks when necessary ([#486](https://github.com/firebase/php-jwt/issues/486)) ([78d3ed1](https://github.com/firebase/php-jwt/commit/78d3ed1073553f7d0bbffa6c2010009a0d483d5c))
|
||||||
|
|
||||||
|
## [6.3.2](https://github.com/firebase/php-jwt/compare/v6.3.1...v6.3.2) (2022-11-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* check kid before using as array index ([bad1b04](https://github.com/firebase/php-jwt/commit/bad1b040d0c736bbf86814c6b5ae614f517cf7bd))
|
||||||
|
|
||||||
|
## [6.3.1](https://github.com/firebase/php-jwt/compare/v6.3.0...v6.3.1) (2022-11-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* casing of GET for PSR compat ([#451](https://github.com/firebase/php-jwt/issues/451)) ([60b52b7](https://github.com/firebase/php-jwt/commit/60b52b71978790eafcf3b95cfbd83db0439e8d22))
|
||||||
|
* string interpolation format for php 8.2 ([#446](https://github.com/firebase/php-jwt/issues/446)) ([2e07d8a](https://github.com/firebase/php-jwt/commit/2e07d8a1524d12b69b110ad649f17461d068b8f2))
|
||||||
|
|
||||||
|
## 6.3.0 / 2022-07-15
|
||||||
|
|
||||||
|
- Added ES256 support to JWK parsing ([#399](https://github.com/firebase/php-jwt/pull/399))
|
||||||
|
- Fixed potential caching error in `CachedKeySet` by caching jwks as strings ([#435](https://github.com/firebase/php-jwt/pull/435))
|
||||||
|
|
||||||
|
## 6.2.0 / 2022-05-14
|
||||||
|
|
||||||
|
- Added `CachedKeySet` ([#397](https://github.com/firebase/php-jwt/pull/397))
|
||||||
|
- Added `$defaultAlg` parameter to `JWT::parseKey` and `JWT::parseKeySet` ([#426](https://github.com/firebase/php-jwt/pull/426)).
|
||||||
|
|
||||||
|
## 6.1.0 / 2022-03-23
|
||||||
|
|
||||||
|
- Drop support for PHP 5.3, 5.4, 5.5, 5.6, and 7.0
|
||||||
|
- Add parameter typing and return types where possible
|
||||||
|
|
||||||
|
## 6.0.0 / 2022-01-24
|
||||||
|
|
||||||
|
- **Backwards-Compatibility Breaking Changes**: See the [Release Notes](https://github.com/firebase/php-jwt/releases/tag/v6.0.0) for more information.
|
||||||
|
- New Key object to prevent key/algorithm type confusion (#365)
|
||||||
|
- Add JWK support (#273)
|
||||||
|
- Add ES256 support (#256)
|
||||||
|
- Add ES384 support (#324)
|
||||||
|
- Add Ed25519 support (#343)
|
||||||
|
|
||||||
|
## 5.0.0 / 2017-06-26
|
||||||
|
- Support RS384 and RS512.
|
||||||
|
See [#117](https://github.com/firebase/php-jwt/pull/117). Thanks [@joostfaassen](https://github.com/joostfaassen)!
|
||||||
|
- Add an example for RS256 openssl.
|
||||||
|
See [#125](https://github.com/firebase/php-jwt/pull/125). Thanks [@akeeman](https://github.com/akeeman)!
|
||||||
|
- Detect invalid Base64 encoding in signature.
|
||||||
|
See [#162](https://github.com/firebase/php-jwt/pull/162). Thanks [@psignoret](https://github.com/psignoret)!
|
||||||
|
- Update `JWT::verify` to handle OpenSSL errors.
|
||||||
|
See [#159](https://github.com/firebase/php-jwt/pull/159). Thanks [@bshaffer](https://github.com/bshaffer)!
|
||||||
|
- Add `array` type hinting to `decode` method
|
||||||
|
See [#101](https://github.com/firebase/php-jwt/pull/101). Thanks [@hywak](https://github.com/hywak)!
|
||||||
|
- Add all JSON error types.
|
||||||
|
See [#110](https://github.com/firebase/php-jwt/pull/110). Thanks [@gbalduzzi](https://github.com/gbalduzzi)!
|
||||||
|
- Bugfix 'kid' not in given key list.
|
||||||
|
See [#129](https://github.com/firebase/php-jwt/pull/129). Thanks [@stampycode](https://github.com/stampycode)!
|
||||||
|
- Miscellaneous cleanup, documentation and test fixes.
|
||||||
|
See [#107](https://github.com/firebase/php-jwt/pull/107), [#115](https://github.com/firebase/php-jwt/pull/115),
|
||||||
|
[#160](https://github.com/firebase/php-jwt/pull/160), [#161](https://github.com/firebase/php-jwt/pull/161), and
|
||||||
|
[#165](https://github.com/firebase/php-jwt/pull/165). Thanks [@akeeman](https://github.com/akeeman),
|
||||||
|
[@chinedufn](https://github.com/chinedufn), and [@bshaffer](https://github.com/bshaffer)!
|
||||||
|
|
||||||
|
## 4.0.0 / 2016-07-17
|
||||||
|
- Add support for late static binding. See [#88](https://github.com/firebase/php-jwt/pull/88) for details. Thanks to [@chappy84](https://github.com/chappy84)!
|
||||||
|
- Use static `$timestamp` instead of `time()` to improve unit testing. See [#93](https://github.com/firebase/php-jwt/pull/93) for details. Thanks to [@josephmcdermott](https://github.com/josephmcdermott)!
|
||||||
|
- Fixes to exceptions classes. See [#81](https://github.com/firebase/php-jwt/pull/81) for details. Thanks to [@Maks3w](https://github.com/Maks3w)!
|
||||||
|
- Fixes to PHPDoc. See [#76](https://github.com/firebase/php-jwt/pull/76) for details. Thanks to [@akeeman](https://github.com/akeeman)!
|
||||||
|
|
||||||
|
## 3.0.0 / 2015-07-22
|
||||||
|
- Minimum PHP version updated from `5.2.0` to `5.3.0`.
|
||||||
|
- Add `\Firebase\JWT` namespace. See
|
||||||
|
[#59](https://github.com/firebase/php-jwt/pull/59) for details. Thanks to
|
||||||
|
[@Dashron](https://github.com/Dashron)!
|
||||||
|
- Require a non-empty key to decode and verify a JWT. See
|
||||||
|
[#60](https://github.com/firebase/php-jwt/pull/60) for details. Thanks to
|
||||||
|
[@sjones608](https://github.com/sjones608)!
|
||||||
|
- Cleaner documentation blocks in the code. See
|
||||||
|
[#62](https://github.com/firebase/php-jwt/pull/62) for details. Thanks to
|
||||||
|
[@johanderuijter](https://github.com/johanderuijter)!
|
||||||
|
|
||||||
|
## 2.2.0 / 2015-06-22
|
||||||
|
- Add support for adding custom, optional JWT headers to `JWT::encode()`. See
|
||||||
|
[#53](https://github.com/firebase/php-jwt/pull/53/files) for details. Thanks to
|
||||||
|
[@mcocaro](https://github.com/mcocaro)!
|
||||||
|
|
||||||
|
## 2.1.0 / 2015-05-20
|
||||||
|
- Add support for adding a leeway to `JWT:decode()` that accounts for clock skew
|
||||||
|
between signing and verifying entities. Thanks to [@lcabral](https://github.com/lcabral)!
|
||||||
|
- Add support for passing an object implementing the `ArrayAccess` interface for
|
||||||
|
`$keys` argument in `JWT::decode()`. Thanks to [@aztech-dev](https://github.com/aztech-dev)!
|
||||||
|
|
||||||
|
## 2.0.0 / 2015-04-01
|
||||||
|
- **Note**: It is strongly recommended that you update to > v2.0.0 to address
|
||||||
|
known security vulnerabilities in prior versions when both symmetric and
|
||||||
|
asymmetric keys are used together.
|
||||||
|
- Update signature for `JWT::decode(...)` to require an array of supported
|
||||||
|
algorithms to use when verifying token signatures.
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
Copyright (c) 2011, Neuman Vong
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following
|
||||||
|
disclaimer in the documentation and/or other materials provided
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
* Neither the name of the copyright holder nor the names of other
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
@@ -0,0 +1,469 @@
|
|||||||
|

|
||||||
|
[](https://packagist.org/packages/firebase/php-jwt)
|
||||||
|
[](https://packagist.org/packages/firebase/php-jwt)
|
||||||
|
[](https://packagist.org/packages/firebase/php-jwt)
|
||||||
|
|
||||||
|
PHP-JWT
|
||||||
|
=======
|
||||||
|
A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to [RFC 7519](https://datatracker.ietf.org/doc/html/rfc7519).
|
||||||
|
|
||||||
|
Supported Specifications
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
- [RFC 7519](https://datatracker.ietf.org/doc/html/rfc7519) — JSON Web Token (JWT)
|
||||||
|
- [RFC 7515](https://datatracker.ietf.org/doc/html/rfc7515) — JSON Web Signature (JWS)
|
||||||
|
- [RFC 7517](https://datatracker.ietf.org/doc/html/rfc7517) — JSON Web Key (JWK)
|
||||||
|
- [RFC 7518](https://datatracker.ietf.org/doc/html/rfc7518) — JSON Web Algorithms (JWA) (`HS256`, `HS384`, `HS512`, `RS256`, `RS384`, `RS512`, `ES256`, `ES384`, `PS256`)
|
||||||
|
- [RFC 8037](https://datatracker.ietf.org/doc/html/rfc8037) — CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JOSE (`EdDSA` / `Ed25519` and `OKP` JWKs)
|
||||||
|
- [RFC 8812](https://datatracker.ietf.org/doc/html/rfc8812) — CBOR Object Signing and Encryption (COSE) and JSON Object Signing and Encryption (JOSE) Registrations for Web Authentication (WebAuthn) Algorithms (`ES256K` / `secp256k1`)
|
||||||
|
|
||||||
|
> **Note:** This library only supports signed JWTs (JWS, [RFC 7515](https://datatracker.ietf.org/doc/html/rfc7515)). Encrypted JWTs (JWE, [RFC 7516](https://datatracker.ietf.org/doc/html/rfc7516)) are not supported.
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Use composer to manage your dependencies and download PHP-JWT:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer require firebase/php-jwt
|
||||||
|
```
|
||||||
|
|
||||||
|
Optionally, install the `paragonie/sodium_compat` package from composer if your
|
||||||
|
php env does not have libsodium installed:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer require paragonie/sodium_compat
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\Key;
|
||||||
|
|
||||||
|
$key = 'example_key_of_sufficient_length';
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IMPORTANT:
|
||||||
|
* You must specify supported algorithms for your application. See
|
||||||
|
* https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40
|
||||||
|
* for a list of spec-compliant algorithms.
|
||||||
|
*/
|
||||||
|
$jwt = JWT::encode($payload, $key, 'HS256');
|
||||||
|
$decoded = JWT::decode($jwt, new Key($key, 'HS256'));
|
||||||
|
print_r($decoded);
|
||||||
|
|
||||||
|
// Pass a stdClass in as the third parameter to get the decoded header values
|
||||||
|
$headers = new stdClass();
|
||||||
|
$decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers);
|
||||||
|
print_r($headers);
|
||||||
|
|
||||||
|
/*
|
||||||
|
NOTE: This will now be an object instead of an associative array. To get
|
||||||
|
an associative array, you will need to cast it as such:
|
||||||
|
*/
|
||||||
|
|
||||||
|
$decoded_array = (array) $decoded;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* You can add a leeway to account for when there is a clock skew times between
|
||||||
|
* the signing and verifying servers. It is recommended that this leeway should
|
||||||
|
* not be bigger than a few minutes.
|
||||||
|
*
|
||||||
|
* Source: http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#nbfDef
|
||||||
|
*/
|
||||||
|
JWT::$leeway = 60; // $leeway in seconds
|
||||||
|
$decoded = JWT::decode($jwt, new Key($key, 'HS256'));
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example encode/decode headers
|
||||||
|
|
||||||
|
Decoding the JWT headers without verifying the JWT first is NOT recommended, and is not supported by
|
||||||
|
this library. This is because without verifying the JWT, the header values could have been tampered with.
|
||||||
|
Any value pulled from an unverified header should be treated as if it could be any string sent in from an
|
||||||
|
attacker. If this is something you still want to do in your application for whatever reason, it's possible to
|
||||||
|
decode the header values manually simply by calling `json_decode` and `base64_decode` on the JWT
|
||||||
|
header part:
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
|
||||||
|
$key = 'example_key_of_sufficient_length';
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'x-forwarded-for' => 'www.google.com'
|
||||||
|
];
|
||||||
|
|
||||||
|
// Encode headers in the JWT string
|
||||||
|
$jwt = JWT::encode($payload, $key, 'HS256', null, $headers);
|
||||||
|
|
||||||
|
// Decode headers from the JWT string WITHOUT validation
|
||||||
|
// **IMPORTANT**: This operation is vulnerable to attacks, as the JWT has not yet been verified.
|
||||||
|
// These headers could be any value sent by an attacker.
|
||||||
|
list($headersB64, $payloadB64, $sig) = explode('.', $jwt);
|
||||||
|
$decoded = json_decode(base64_decode($headersB64), true);
|
||||||
|
|
||||||
|
print_r($decoded);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example with RS256 (openssl)
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\Key;
|
||||||
|
|
||||||
|
$privateKey = <<<EOD
|
||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIIEowIBAAKCAQEAuzWHNM5f+amCjQztc5QTfJfzCC5J4nuW+L/aOxZ4f8J3Frew
|
||||||
|
M2c/dufrnmedsApb0By7WhaHlcqCh/ScAPyJhzkPYLae7bTVro3hok0zDITR8F6S
|
||||||
|
JGL42JAEUk+ILkPI+DONM0+3vzk6Kvfe548tu4czCuqU8BGVOlnp6IqBHhAswNMM
|
||||||
|
78pos/2z0CjPM4tbeXqSTTbNkXRboxjU29vSopcT51koWOgiTf3C7nJUoMWZHZI5
|
||||||
|
HqnIhPAG9yv8HAgNk6CMk2CadVHDo4IxjxTzTTqo1SCSH2pooJl9O8at6kkRYsrZ
|
||||||
|
WwsKlOFE2LUce7ObnXsYihStBUDoeBQlGG/BwQIDAQABAoIBAFtGaOqNKGwggn9k
|
||||||
|
6yzr6GhZ6Wt2rh1Xpq8XUz514UBhPxD7dFRLpbzCrLVpzY80LbmVGJ9+1pJozyWc
|
||||||
|
VKeCeUdNwbqkr240Oe7GTFmGjDoxU+5/HX/SJYPpC8JZ9oqgEA87iz+WQX9hVoP2
|
||||||
|
oF6EB4ckDvXmk8FMwVZW2l2/kd5mrEVbDaXKxhvUDf52iVD+sGIlTif7mBgR99/b
|
||||||
|
c3qiCnxCMmfYUnT2eh7Vv2LhCR/G9S6C3R4lA71rEyiU3KgsGfg0d82/XWXbegJW
|
||||||
|
h3QbWNtQLxTuIvLq5aAryV3PfaHlPgdgK0ft6ocU2de2FagFka3nfVEyC7IUsNTK
|
||||||
|
bq6nhAECgYEA7d/0DPOIaItl/8BWKyCuAHMss47j0wlGbBSHdJIiS55akMvnAG0M
|
||||||
|
39y22Qqfzh1at9kBFeYeFIIU82ZLF3xOcE3z6pJZ4Dyvx4BYdXH77odo9uVK9s1l
|
||||||
|
3T3BlMcqd1hvZLMS7dviyH79jZo4CXSHiKzc7pQ2YfK5eKxKqONeXuECgYEAyXlG
|
||||||
|
vonaus/YTb1IBei9HwaccnQ/1HRn6MvfDjb7JJDIBhNClGPt6xRlzBbSZ73c2QEC
|
||||||
|
6Fu9h36K/HZ2qcLd2bXiNyhIV7b6tVKk+0Psoj0dL9EbhsD1OsmE1nTPyAc9XZbb
|
||||||
|
OPYxy+dpBCUA8/1U9+uiFoCa7mIbWcSQ+39gHuECgYAz82pQfct30aH4JiBrkNqP
|
||||||
|
nJfRq05UY70uk5k1u0ikLTRoVS/hJu/d4E1Kv4hBMqYCavFSwAwnvHUo51lVCr/y
|
||||||
|
xQOVYlsgnwBg2MX4+GjmIkqpSVCC8D7j/73MaWb746OIYZervQ8dbKahi2HbpsiG
|
||||||
|
8AHcVSA/agxZr38qvWV54QKBgCD5TlDE8x18AuTGQ9FjxAAd7uD0kbXNz2vUYg9L
|
||||||
|
hFL5tyL3aAAtUrUUw4xhd9IuysRhW/53dU+FsG2dXdJu6CxHjlyEpUJl2iZu/j15
|
||||||
|
YnMzGWHIEX8+eWRDsw/+Ujtko/B7TinGcWPz3cYl4EAOiCeDUyXnqnO1btCEUU44
|
||||||
|
DJ1BAoGBAJuPD27ErTSVtId90+M4zFPNibFP50KprVdc8CR37BE7r8vuGgNYXmnI
|
||||||
|
RLnGP9p3pVgFCktORuYS2J/6t84I3+A17nEoB4xvhTLeAinAW/uTQOUmNicOP4Ek
|
||||||
|
2MsLL2kHgL8bLTmvXV4FX+PXphrDKg1XxzOYn0otuoqdAQrkK4og
|
||||||
|
-----END RSA PRIVATE KEY-----
|
||||||
|
EOD;
|
||||||
|
|
||||||
|
$publicKey = <<<EOD
|
||||||
|
-----BEGIN PUBLIC KEY-----
|
||||||
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzWHNM5f+amCjQztc5QT
|
||||||
|
fJfzCC5J4nuW+L/aOxZ4f8J3FrewM2c/dufrnmedsApb0By7WhaHlcqCh/ScAPyJ
|
||||||
|
hzkPYLae7bTVro3hok0zDITR8F6SJGL42JAEUk+ILkPI+DONM0+3vzk6Kvfe548t
|
||||||
|
u4czCuqU8BGVOlnp6IqBHhAswNMM78pos/2z0CjPM4tbeXqSTTbNkXRboxjU29vS
|
||||||
|
opcT51koWOgiTf3C7nJUoMWZHZI5HqnIhPAG9yv8HAgNk6CMk2CadVHDo4IxjxTz
|
||||||
|
TTqo1SCSH2pooJl9O8at6kkRYsrZWwsKlOFE2LUce7ObnXsYihStBUDoeBQlGG/B
|
||||||
|
wQIDAQAB
|
||||||
|
-----END PUBLIC KEY-----
|
||||||
|
EOD;
|
||||||
|
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
$jwt = JWT::encode($payload, $privateKey, 'RS256');
|
||||||
|
echo "Encode:\n" . print_r($jwt, true) . "\n";
|
||||||
|
|
||||||
|
$decoded = JWT::decode($jwt, new Key($publicKey, 'RS256'));
|
||||||
|
|
||||||
|
/*
|
||||||
|
NOTE: This will now be an object instead of an associative array. To get
|
||||||
|
an associative array, you will need to cast it as such:
|
||||||
|
*/
|
||||||
|
|
||||||
|
$decoded_array = (array) $decoded;
|
||||||
|
echo "Decode:\n" . print_r($decoded_array, true) . "\n";
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example with a passphrase
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\Key;
|
||||||
|
|
||||||
|
// Your passphrase
|
||||||
|
$passphrase = '[YOUR_PASSPHRASE]';
|
||||||
|
|
||||||
|
// Your private key file with passphrase
|
||||||
|
// Can be generated with "ssh-keygen -t rsa -m pem"
|
||||||
|
$privateKeyFile = '/path/to/key-with-passphrase.pem';
|
||||||
|
|
||||||
|
/** @var OpenSSLAsymmetricKey $privateKey */
|
||||||
|
$privateKey = openssl_pkey_get_private(
|
||||||
|
file_get_contents($privateKeyFile),
|
||||||
|
$passphrase
|
||||||
|
);
|
||||||
|
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
$jwt = JWT::encode($payload, $privateKey, 'RS256');
|
||||||
|
echo "Encode:\n" . print_r($jwt, true) . "\n";
|
||||||
|
|
||||||
|
// Get public key from the private key, or pull from from a file.
|
||||||
|
$publicKey = openssl_pkey_get_details($privateKey)['key'];
|
||||||
|
|
||||||
|
$decoded = JWT::decode($jwt, new Key($publicKey, 'RS256'));
|
||||||
|
echo "Decode:\n" . print_r((array) $decoded, true) . "\n";
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example with EdDSA (libsodium and Ed25519 signature)
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\Key;
|
||||||
|
|
||||||
|
// Public and private keys are expected to be Base64 encoded. The last
|
||||||
|
// non-empty line is used so that keys can be generated with
|
||||||
|
// sodium_crypto_sign_keypair(). The secret keys generated by other tools may
|
||||||
|
// need to be adjusted to match the input expected by libsodium.
|
||||||
|
|
||||||
|
$keyPair = sodium_crypto_sign_keypair();
|
||||||
|
|
||||||
|
$privateKey = base64_encode(sodium_crypto_sign_secretkey($keyPair));
|
||||||
|
|
||||||
|
$publicKey = base64_encode(sodium_crypto_sign_publickey($keyPair));
|
||||||
|
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
$jwt = JWT::encode($payload, $privateKey, 'EdDSA');
|
||||||
|
echo "Encode:\n" . print_r($jwt, true) . "\n";
|
||||||
|
|
||||||
|
$decoded = JWT::decode($jwt, new Key($publicKey, 'EdDSA'));
|
||||||
|
echo "Decode:\n" . print_r((array) $decoded, true) . "\n";
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example with multiple keys
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\Key;
|
||||||
|
|
||||||
|
// Example RSA keys from previous example
|
||||||
|
// $privateRsKey = '...';
|
||||||
|
// $publicRsKey = '...';
|
||||||
|
|
||||||
|
// Example EdDSA keys from previous example
|
||||||
|
// $privateEcKey = '...';
|
||||||
|
// $publicEcKey = '...';
|
||||||
|
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
$jwt1 = JWT::encode($payload, $privateRsKey, 'RS256', 'kid1');
|
||||||
|
$jwt2 = JWT::encode($payload, $privateEcKey, 'EdDSA', 'kid2');
|
||||||
|
echo "Encode 1:\n" . print_r($jwt1, true) . "\n";
|
||||||
|
echo "Encode 2:\n" . print_r($jwt2, true) . "\n";
|
||||||
|
|
||||||
|
$keys = [
|
||||||
|
'kid1' => new Key($publicRsKey, 'RS256'),
|
||||||
|
'kid2' => new Key($publicEcKey, 'EdDSA'),
|
||||||
|
];
|
||||||
|
|
||||||
|
$decoded1 = JWT::decode($jwt1, $keys);
|
||||||
|
$decoded2 = JWT::decode($jwt2, $keys);
|
||||||
|
|
||||||
|
echo "Decode 1:\n" . print_r((array) $decoded1, true) . "\n";
|
||||||
|
echo "Decode 2:\n" . print_r((array) $decoded2, true) . "\n";
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example with PS256
|
||||||
|
|
||||||
|
### Note
|
||||||
|
PHP's OpenSSL extension does not support RSASSA-PSS signatures (PS256) by default, so we provide support via a soft dependency on the [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) library. It is necessary to install this library in your project if you plan to use PS256.
|
||||||
|
```bash
|
||||||
|
composer install phpseclib/phpseclib:^3.0
|
||||||
|
```
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\Key;
|
||||||
|
|
||||||
|
$privateRsKey = '-----BEGIN RSA PRIVATE KEY----- ...';
|
||||||
|
$publicKey = '-----BEGIN PUBLIC KEY----- ...';
|
||||||
|
|
||||||
|
$payload = [
|
||||||
|
'iss' => 'example.org',
|
||||||
|
'aud' => 'example.com',
|
||||||
|
'iat' => 1356999524,
|
||||||
|
'nbf' => 1357000000
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PS256 support requires phpseclib/phpseclib
|
||||||
|
*/
|
||||||
|
$jwt = JWT::encode($payload, $privateRsKey, 'PS256', 'keyid');
|
||||||
|
echo "Encode:\n" . print_r($jwt, true) . "\n";
|
||||||
|
|
||||||
|
$decoded = JWT::decode($jwt, new Key($publicKey, 'PS256'));
|
||||||
|
echo "Decode:\n" . print_r((array) $decoded, true) . "\n";
|
||||||
|
```
|
||||||
|
|
||||||
|
## Using JWKs
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWK;
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
|
||||||
|
// Set of keys. The "keys" key is required. For example, the JSON response to
|
||||||
|
// this endpoint: https://www.gstatic.com/iap/verify/public_key-jwk
|
||||||
|
$jwks = ['keys' => []];
|
||||||
|
|
||||||
|
// JWK::parseKeySet($jwks) returns an associative array of **kid** to Firebase\JWT\Key
|
||||||
|
// objects. Pass this as the second parameter to JWT::decode.
|
||||||
|
$decoded = JWT::decode($jwt, JWK::parseKeySet($jwks));
|
||||||
|
print_r($decoded);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Using Cached Key Sets
|
||||||
|
|
||||||
|
The `CachedKeySet` class can be used to fetch and cache JWKS (JSON Web Key Sets) from a public URI.
|
||||||
|
This has the following advantages:
|
||||||
|
|
||||||
|
1. The results are cached for performance.
|
||||||
|
2. If an unrecognized key is requested, the cache is refreshed, to accomodate for key rotation.
|
||||||
|
3. If rate limiting is enabled, the JWKS URI will not make more than 10 requests a second.
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\CachedKeySet;
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
|
||||||
|
// The URI for the JWKS you wish to cache the results from
|
||||||
|
$jwksUri = 'https://www.gstatic.com/iap/verify/public_key-jwk';
|
||||||
|
|
||||||
|
// Create an HTTP client (can be any PSR-7 compatible HTTP client)
|
||||||
|
$httpClient = new GuzzleHttp\Client();
|
||||||
|
|
||||||
|
// Create an HTTP request factory (can be any PSR-17 compatible HTTP request factory)
|
||||||
|
$httpFactory = new GuzzleHttp\Psr7\HttpFactory();
|
||||||
|
|
||||||
|
// Create a cache item pool (can be any PSR-6 compatible cache item pool)
|
||||||
|
$cacheItemPool = Phpfastcache\CacheManager::getInstance('files');
|
||||||
|
|
||||||
|
$keySet = new CachedKeySet(
|
||||||
|
$jwksUri,
|
||||||
|
$httpClient,
|
||||||
|
$httpFactory,
|
||||||
|
$cacheItemPool,
|
||||||
|
null, // $expiresAfter int seconds to set the JWKS to expire
|
||||||
|
true // $rateLimit true to enable rate limit of 10 RPS on lookup of invalid keys
|
||||||
|
);
|
||||||
|
|
||||||
|
$jwt = 'eyJhbGci...'; // Some JWT signed by a key from the $jwkUri above
|
||||||
|
$decoded = JWT::decode($jwt, $keySet);
|
||||||
|
```
|
||||||
|
|
||||||
|
Miscellaneous
|
||||||
|
-------------
|
||||||
|
|
||||||
|
#### Exception Handling
|
||||||
|
|
||||||
|
When a call to `JWT::decode` is invalid, it will throw one of the following exceptions:
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use Firebase\JWT\SignatureInvalidException;
|
||||||
|
use Firebase\JWT\BeforeValidException;
|
||||||
|
use Firebase\JWT\ExpiredException;
|
||||||
|
use DomainException;
|
||||||
|
use InvalidArgumentException;
|
||||||
|
use UnexpectedValueException;
|
||||||
|
|
||||||
|
try {
|
||||||
|
$decoded = JWT::decode($jwt, $keys);
|
||||||
|
} catch (InvalidArgumentException $e) {
|
||||||
|
// provided key/key-array is empty or malformed.
|
||||||
|
} catch (DomainException $e) {
|
||||||
|
// provided algorithm is unsupported OR
|
||||||
|
// provided key is invalid OR
|
||||||
|
// unknown error thrown in openSSL or libsodium OR
|
||||||
|
// libsodium is required but not available.
|
||||||
|
} catch (SignatureInvalidException $e) {
|
||||||
|
// provided JWT signature verification failed.
|
||||||
|
} catch (BeforeValidException $e) {
|
||||||
|
// provided JWT is trying to be used before "nbf" claim OR
|
||||||
|
// provided JWT is trying to be used before "iat" claim.
|
||||||
|
} catch (ExpiredException $e) {
|
||||||
|
// provided JWT is trying to be used after "exp" claim.
|
||||||
|
} catch (UnexpectedValueException $e) {
|
||||||
|
// provided JWT is malformed OR
|
||||||
|
// provided JWT is missing an algorithm / using an unsupported algorithm OR
|
||||||
|
// provided JWT algorithm does not match provided key OR
|
||||||
|
// provided key ID in key/key-array is empty or invalid.
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
All exceptions in the `Firebase\JWT` namespace extend `UnexpectedValueException`, and can be simplified
|
||||||
|
like this:
|
||||||
|
|
||||||
|
```php
|
||||||
|
use Firebase\JWT\JWT;
|
||||||
|
use UnexpectedValueException;
|
||||||
|
try {
|
||||||
|
$decoded = JWT::decode($jwt, $keys);
|
||||||
|
} catch (LogicException $e) {
|
||||||
|
// errors having to do with environmental setup or malformed JWT Keys
|
||||||
|
} catch (UnexpectedValueException $e) {
|
||||||
|
// errors having to do with JWT signature and claims
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Casting to array
|
||||||
|
|
||||||
|
The return value of `JWT::decode` is the generic PHP object `stdClass`. If you'd like to handle with arrays
|
||||||
|
instead, you can do the following:
|
||||||
|
|
||||||
|
```php
|
||||||
|
// return type is stdClass
|
||||||
|
$decoded = JWT::decode($jwt, $keys);
|
||||||
|
|
||||||
|
// cast to array
|
||||||
|
$decoded = json_decode(json_encode($decoded), true);
|
||||||
|
```
|
||||||
|
|
||||||
|
Tests
|
||||||
|
-----
|
||||||
|
Run the tests using phpunit:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ composer update
|
||||||
|
$ vendor/bin/phpunit -c phpunit.xml.dist
|
||||||
|
PHPUnit 3.7.10 by Sebastian Bergmann.
|
||||||
|
.....
|
||||||
|
Time: 0 seconds, Memory: 2.50Mb
|
||||||
|
OK (5 tests, 5 assertions)
|
||||||
|
```
|
||||||
|
|
||||||
|
New Lines in private keys
|
||||||
|
-----
|
||||||
|
|
||||||
|
If your private key contains `\n` characters, be sure to wrap it in double quotes `""`
|
||||||
|
and not single quotes `''` in order to properly interpret the escaped characters.
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
[3-Clause BSD](http://opensource.org/licenses/BSD-3-Clause).
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
7.2.2
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"name": "firebase/php-jwt",
|
||||||
|
"description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
|
||||||
|
"homepage": "https://github.com/googleapis/php-jwt",
|
||||||
|
"keywords": [
|
||||||
|
"php",
|
||||||
|
"jwt"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Neuman Vong",
|
||||||
|
"email": "neuman+pear@twilio.com",
|
||||||
|
"role": "Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Anant Narayanan",
|
||||||
|
"email": "anant@php.net",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"require": {
|
||||||
|
"php": "^8.0"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present",
|
||||||
|
"ext-sodium": "Support EdDSA (Ed25519) signatures",
|
||||||
|
"phpseclib/phpseclib": "Support PS256 (RSASSA-PSS) signatures"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Firebase\\JWT\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"guzzlehttp/guzzle": "^7.4||^8.0",
|
||||||
|
"phpspec/prophecy-phpunit": "^2.2",
|
||||||
|
"phpunit/phpunit": "^9.5",
|
||||||
|
"psr/cache": "^2.0||^3.0",
|
||||||
|
"psr/http-client": "^1.0",
|
||||||
|
"psr/http-factory": "^1.0",
|
||||||
|
"phpfastcache/phpfastcache": "^9.2",
|
||||||
|
"phpseclib/phpseclib": "~3.0"
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"component": {
|
||||||
|
"id": "jwt",
|
||||||
|
"target": "googleapis/php-jwt.git",
|
||||||
|
"path": "Jwt",
|
||||||
|
"entry": "README.md"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||