PHPackages                             orcarail/orcarail-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. orcarail/orcarail-php

ActiveLibrary

orcarail/orcarail-php
=====================

Official PHP SDK for the OrcaRail API

v1.0.2(today)017↑2723.5%MITPHPPHP ^8.1CI passing

Since Jul 30Pushed todayCompare

[ Source](https://github.com/OrcaRail/sdks-php)[ Packagist](https://packagist.org/packages/orcarail/orcarail-php)[ Docs](https://github.com/OrcaRail/sdks-php)[ RSS](/packages/orcarail-orcarail-php/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

OrcaRail PHP SDK
================

[](#orcarail-php-sdk)

The official PHP 8.1+ client for the OrcaRail API. Tested on PHP 8.1–8.4.

```
composer require orcarail/orcarail-php
```

```
use OrcaRail\OrcaRailClient;

$orcarail = new OrcaRailClient([
    'api_key' => 'pk_live_...',
    'api_secret' => 'sk_live_...',
]);

$intent = $orcarail->paymentIntents->create([
    'price_id' => 'price_...',
    'return_url' => 'https://example.com/return',
]);

echo $intent->id;
```

Services are exposed lazily as `paymentIntents`, `subscriptions`, `pay`, `rates`, `products`, and `prices`. API responses are `OrcaRailObject` values that support both property and array access.

Webhook events must be constructed from the unmodified request body:

```
$event = \OrcaRail\Webhook::constructEvent(
    file_get_contents('php://input'),
    $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'] ?? '',
    'sk_live_...',
);
```

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

[](#documentation)

- [PHP SDK guide](https://docs.orcarail.com/docs/integration/php-sdk/)
- [PHP SDK API reference](https://docs.orcarail.com/docs/integration/php-sdk-api-reference/)

Development
-----------

[](#development)

```
composer install
composer test
composer analyse
composer cs-check
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdb8e0a04d9f316391d4054e3f63eba674abfd04cda27a53e9e7f47e91e92971?d=identicon)[amirhabibzadeh](/maintainers/amirhabibzadeh)

---

Top Contributors

[![amirhabibzadeh](https://avatars.githubusercontent.com/u/1721986?v=4)](https://github.com/amirhabibzadeh "amirhabibzadeh (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/orcarail-orcarail-php/health.svg)

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

PHPackages © 2026

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