PHPackages                             opencomponents/oc-client-php - 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. opencomponents/oc-client-php

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

opencomponents/oc-client-php
============================

oc-client PHP implementation

0.0.1(8y ago)61.6k3[1 PRs](https://github.com/opencomponents/oc-client-php/pulls)1GPL-3.0PHP

Since Jul 15Pushed 2y ago8 watchersCompare

[ Source](https://github.com/opencomponents/oc-client-php)[ Packagist](https://packagist.org/packages/opencomponents/oc-client-php)[ RSS](/packages/opencomponents-oc-client-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

oc-client-php
=============

[](#oc-client-php)

[![Build status](https://camo.githubusercontent.com/b45077969f97adba6235bf91dd53eae3b7e74344451f09f8fcbdb24ac1e76037/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f70656e636f6d706f6e656e74732f6f632d636c69656e742d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/opencomponents/oc-client-php)[![Code coverage](https://camo.githubusercontent.com/2478ba6ba841ad90a6d40649003a506d78311ecc76a27ac8ba61fc6932fcc997/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6f70656e636f6d706f6e656e74732f6f632d636c69656e742d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/opencomponents/oc-client-php)

PHP client for [OpenComponents](https://github.com/opentable/oc)

For a nodejs implementation check this [link](https://github.com/opencomponents/oc-client-node). This library is heavily based on it.

Install
-------

[](#install)

```
composer require opencomponents/oc-client-php
```

Quickstart
----------

[](#quickstart)

```
use OpenComponents\Client;

// Initializing the client
$client = new Client(array(
    "serverRendering" => 'https://your-components.repository.com/'
));

// Render some component
$components = $client->renderComponents(array(
    array(
        'name' => 'your-amazing-widget',
        'parameters' => array(
            'param1' => 'hello opencomponents!',
            'param2' => 'just show me the component'
        )
    ),
    array(
        'name' => 'one-more-component'
    )
));

// Print the rendered component and volià
echo $components['html'];
```

Running tests
-------------

[](#running-tests)

```
composer test
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cbcbe685af90849bdd806d22ba8c315093bdeb6b2c46c874108b69f81c23038?d=identicon)[gtrias](/maintainers/gtrias)

---

Top Contributors

[![matteofigus](https://avatars.githubusercontent.com/u/1789893?v=4)](https://github.com/matteofigus "matteofigus (1 commits)")

---

Tags

oc-clientopencomponentsphpwidgets

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/opencomponents-oc-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/opencomponents-oc-client-php/health.svg)](https://phpackages.com/packages/opencomponents-oc-client-php)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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