PHPackages                             semsol/arc2 - 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. semsol/arc2

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

semsol/arc2
===========

ARC2 is a PHP library for working with RDF. It also provides a MySQL-based triplestore with SPARQL support.

3.1.0(1y ago)334250.0k↑72.6%91[39 issues](https://github.com/semsol/arc2/issues)15GPL-2.0-or-laterPHPPHP ^8.0.0CI passing

Since Nov 13Pushed 1mo ago24 watchersCompare

[ Source](https://github.com/semsol/arc2)[ Packagist](https://packagist.org/packages/semsol/arc2)[ Docs](https://github.com/semsol/arc2)[ RSS](/packages/semsol-arc2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (19)Used By (15)

ARC2
====

[](#arc2)

[![Latest Stable Version](https://camo.githubusercontent.com/d171330420e8f4e86de79e5515ebdb90accaf0b269a9686cc736a4c718dbed6a/68747470733a2f2f706f7365722e707567782e6f72672f73656d736f6c2f617263322f762f737461626c652e737667)](https://packagist.org/packages/semsol/arc2)[![Total Downloads](https://camo.githubusercontent.com/ce03e9d3137eed96bf7e6a04beebf6a9433c762bfe1b6cbfe4ed6f9a54c0944e/68747470733a2f2f706f7365722e707567782e6f72672f73656d736f6c2f617263322f646f776e6c6f6164732e737667)](https://packagist.org/packages/semsol/arc2)[![Latest Unstable Version](https://camo.githubusercontent.com/159f29522cece746f9d57cc5a8ec9ff6766041f7499d91b3d7150e68bd766c31/68747470733a2f2f706f7365722e707567782e6f72672f73656d736f6c2f617263322f762f756e737461626c652e737667)](https://packagist.org/packages/semsol/arc2)[![License](https://camo.githubusercontent.com/7e111f3465bce84f8cc7a448d8a6bee5bff39a6af1b7a874a93b881fb4c3accc/68747470733a2f2f706f7365722e707567782e6f72672f73656d736f6c2f617263322f6c6963656e73652e737667)](https://packagist.org/packages/semsol/arc2)

ARC2 is a PHP 8.4+ library for working with RDF. It also provides a MySQL-based triplestore with SPARQL support. Older versions of PHP may work, but are not longer tested.

Documentation
-------------

[](#documentation)

For the documentation, see the [Wiki](https://github.com/semsol/arc2/wiki#core-documentation). To quickly get started, see the [Getting started guide](https://github.com/semsol/arc2/wiki/Getting-started-with-ARC2).

Installation
------------

[](#installation)

Requires **PHP 8.4**+.

Package available on [Composer](https://packagist.org/packages/semsol/arc2).

You should use Composer for installation:

```
composer require semsol/arc2:^3
```

Further information about Composer usage can be found [here](https://getcomposer.org/doc/01-basic-usage.md#autoloading), for instance about autoloading ARC2 classes.

RDF triple store
----------------

[](#rdf-triple-store)

### SPARQL support

[](#sparql-support)

Please have a look into [SPARQL-support.md](doc/SPARQL-support.md) to see which SPARQL 1.0/1.1 features are currently supported.

Internal information for developers
-----------------------------------

[](#internal-information-for-developers)

Please have a look [here](doc/developer.md) to find information about maintaining and extending ARC2 as well as our docker setup for local development.

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance62

Regular maintenance activity

Popularity56

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 58.2% 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 ~268 days

Recently: every ~407 days

Total

17

Last Release

640d ago

Major Versions

2.5.1 → 3.0.02023-09-13

PHP version history (3 changes)v2.1.0PHP &gt;=5.3.0

2.5PHP &gt;=7.2

3.0.0PHP ^8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/27453c4568d44b2f983437011e521c5c6c702002c055d1c01bffc66c581b3fca?d=identicon)[bengee](/maintainers/bengee)

---

Top Contributors

[![k00ni](https://avatars.githubusercontent.com/u/381727?v=4)](https://github.com/k00ni "k00ni (139 commits)")[![bnowack](https://avatars.githubusercontent.com/u/893242?v=4)](https://github.com/bnowack "bnowack (59 commits)")[![cgutteridge](https://avatars.githubusercontent.com/u/510699?v=4)](https://github.com/cgutteridge "cgutteridge (5 commits)")[![semsol](https://avatars.githubusercontent.com/u/429517?v=4)](https://github.com/semsol "semsol (5 commits)")[![ailintom](https://avatars.githubusercontent.com/u/24455000?v=4)](https://github.com/ailintom "ailintom (4 commits)")[![nkos-eu](https://avatars.githubusercontent.com/u/45455044?v=4)](https://github.com/nkos-eu "nkos-eu (4 commits)")[![pietercolpaert](https://avatars.githubusercontent.com/u/347073?v=4)](https://github.com/pietercolpaert "pietercolpaert (4 commits)")[![olberger](https://avatars.githubusercontent.com/u/309225?v=4)](https://github.com/olberger "olberger (3 commits)")[![patrickmcsweeney](https://avatars.githubusercontent.com/u/1313219?v=4)](https://github.com/patrickmcsweeney "patrickmcsweeney (2 commits)")[![samuell](https://avatars.githubusercontent.com/u/125003?v=4)](https://github.com/samuell "samuell (2 commits)")[![Girgias](https://avatars.githubusercontent.com/u/7906688?v=4)](https://github.com/Girgias "Girgias (1 commits)")[![jonphipps](https://avatars.githubusercontent.com/u/12743?v=4)](https://github.com/jonphipps "jonphipps (1 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (1 commits)")[![MattiSG](https://avatars.githubusercontent.com/u/222463?v=4)](https://github.com/MattiSG "MattiSG (1 commits)")[![milesw](https://avatars.githubusercontent.com/u/289555?v=4)](https://github.com/milesw "milesw (1 commits)")[![claudiu-cristea](https://avatars.githubusercontent.com/u/473868?v=4)](https://github.com/claudiu-cristea "claudiu-cristea (1 commits)")[![royopa](https://avatars.githubusercontent.com/u/442991?v=4)](https://github.com/royopa "royopa (1 commits)")[![coreation](https://avatars.githubusercontent.com/u/361244?v=4)](https://github.com/coreation "coreation (1 commits)")[![danmichaelo](https://avatars.githubusercontent.com/u/434495?v=4)](https://github.com/danmichaelo "danmichaelo (1 commits)")[![craigdietrich](https://avatars.githubusercontent.com/u/393546?v=4)](https://github.com/craigdietrich "craigdietrich (1 commits)")

---

Tags

RDFsparql

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/semsol-arc2/health.svg)

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

###  Alternatives

[easyrdf/easyrdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

62231.5M42](/packages/easyrdf-easyrdf)[sweetrdf/easyrdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

261.3M11](/packages/sweetrdf-easyrdf)[benestar/asparagus

SPARQL abstraction layer for PHP

1554.9k5](/packages/benestar-asparagus)[bordercloud/sparql

Lib PHP very easy for SPARQL 1.1

27100.4k](/packages/bordercloud-sparql)

PHPackages © 2026

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