PHPackages                             ubccr/ralph - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ubccr/ralph

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ubccr/ralph
===========

A simple SPARQL client built on top of Guzzle.

0.5(8y ago)11281LGPL-3.0-onlyPHPPHP &gt;=7.1

Since Mar 13Pushed 8y ago6 watchersCompare

[ Source](https://github.com/ubccr/ralph)[ Packagist](https://packagist.org/packages/ubccr/ralph)[ Docs](https://github.com/ubccr/ralph)[ RSS](/packages/ubccr-ralph/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

Ralph
=====

[](#ralph)

**R**DF **A**bstraction **L**ayer for **PH**P: A simple SPARQL client built on top of Guzzle.

Take a look at the `list` target in the Makefile for how to use `make` to manage the project.

### An example of a query against the British Museum SPARQL endpoint:

[](#an-example-of-a-query-against-the-british-museum-sparql-endpoint)

```
$result = (new CCR\Sparql\SparqlClient(new GuzzleHttp\Client()));
    ->withEndpoint('http://collection.britishmuseum.org/sparql')
    ->withPrefix('crm', 'http://erlangen-crm.org/current/')
    ->withPrefix('fts', 'http://www.ontotext.com/owlim/fts#');
    ->query('
        SELECT DISTINCT ?obj
        {
            ?obj crm:P102_has_title ?title .
            ?title rdfs:label ?label .
            FILTER(STR(?label) = "Hoa Hakananai\'a")
        }
    ');
print_r($result);
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

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 ~130 days

Total

4

Last Release

2997d ago

PHP version history (2 changes)0.1PHP &gt;=5.5

0.5PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c68ffbc1eb9ca5ee60f08e64645ed7717c5a64476b7e2b4e7ea1e80578ed93d?d=identicon)[ubccr](/maintainers/ubccr)

---

Top Contributors

[![riveraj](https://avatars.githubusercontent.com/u/3633356?v=4)](https://github.com/riveraj "riveraj (14 commits)")

---

Tags

guzzleguzzlehttpphpphp-librarysparqlsparql-endpointssparql-querysparql-query-builderRDFsparql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ubccr-ralph/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.0k38](/packages/dreamfactory-df-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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