PHPackages                             exinfinite/jsonld - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. exinfinite/jsonld

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

exinfinite/jsonld
=================

render jsonld

1.1.0(5y ago)0271MITPHPPHP &gt;=5.6

Since Jun 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/exinfinite/Jsonld)[ Packagist](https://packagist.org/packages/exinfinite/jsonld)[ RSS](/packages/exinfinite-jsonld/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Jsonld
======

[](#jsonld)

[![Packagist PHP Version Support](https://camo.githubusercontent.com/3e18cdb472af2199c55e5455d4079c06c8bead65f385d8a9f924fd8abe7cfd3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6578696e66696e6974652f6a736f6e6c64)](https://camo.githubusercontent.com/3e18cdb472af2199c55e5455d4079c06c8bead65f385d8a9f924fd8abe7cfd3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6578696e66696e6974652f6a736f6e6c64)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/6d842b73797f212a83743cea7c92b3af305080215fea4588a576d4f3cc603090/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6578696e66696e6974652f6a736f6e6c64)](https://camo.githubusercontent.com/6d842b73797f212a83743cea7c92b3af305080215fea4588a576d4f3cc603090/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6578696e66696e6974652f6a736f6e6c64)[![Packagist Version](https://camo.githubusercontent.com/180abb61a2788c7f2cf5fad0a1869381bf54cb61c19180c1e9ce2ffe6beca6e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6578696e66696e6974652f6a736f6e6c64)](https://camo.githubusercontent.com/180abb61a2788c7f2cf5fad0a1869381bf54cb61c19180c1e9ce2ffe6beca6e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6578696e66696e6974652f6a736f6e6c64)[![Packagist Downloads](https://camo.githubusercontent.com/23f7818657d67896ada6a030e2fba21746916afd19f8161578c6c65508937a7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6578696e66696e6974652f6a736f6e6c64)](https://camo.githubusercontent.com/23f7818657d67896ada6a030e2fba21746916afd19f8161578c6c65508937a7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6578696e66696e6974652f6a736f6e6c64)[![GitHub](https://camo.githubusercontent.com/76457c1717d48832b882c567c66f05ab8595cfd2f4a61899e591e981cea239f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6578696e66696e6974652f6a736f6e6c64)](https://camo.githubusercontent.com/76457c1717d48832b882c567c66f05ab8595cfd2f4a61899e591e981cea239f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6578696e66696e6974652f6a736f6e6c64)

安裝
--

[](#安裝)

```
composer require exinfinite/jsonld
```

使用
--

[](#使用)

### 初始化

[](#初始化)

```
$jsonld = new Exinfinite\Jsonld("site name", "site url", "full url of site logo");
$jsonld->setTimezone("timezone");//default:"Asia/Taipei"
```

### BreadcrumbList

[](#breadcrumblist)

```
$jsonld->breadcrumb([
    'page1_url' => 'page1_title',
    'page2_url' => 'page2_title',
    'page3_url' => 'page3_title',
    ...
]);
```

### SearchAction

[](#searchaction)

```
$jsonld->search("full path of search url", "query_param");
```

### NewsArticle

[](#newsarticle)

```
$jsonld->article("page title", "page description", ["page thumbnail", "page thumbnail"], "page published date", "page modified date");
```

最終輸出
----

[](#最終輸出)

```
$jsonld->render();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~199 days

Total

2

Last Release

1949d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19932513?v=4)[exinfinite](/maintainers/exinfinite)[@exinfinite](https://github.com/exinfinite)

---

Top Contributors

[![exinfinite](https://avatars.githubusercontent.com/u/19932513?v=4)](https://github.com/exinfinite "exinfinite (8 commits)")

### Embed Badge

![Health badge](/badges/exinfinite-jsonld/health.svg)

```
[![Health](https://phpackages.com/badges/exinfinite-jsonld/health.svg)](https://phpackages.com/packages/exinfinite-jsonld)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
