PHPackages                             marvinosswald/statamic-client - 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. [API Development](/categories/api)
4. /
5. marvinosswald/statamic-client

ActiveLibrary[API Development](/categories/api)

marvinosswald/statamic-client
=============================

This package simplifies consuming external statamic installations from your laravel application.

01.2k↓50%[3 PRs](https://github.com/marvinosswald/statamic-client/pulls)PHPCI passing

Since Oct 13Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/marvinosswald/statamic-client)[ Packagist](https://packagist.org/packages/marvinosswald/statamic-client)[ RSS](/packages/marvinosswald-statamic-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Statamic Client
===============

[](#statamic-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/40bf5d25d621af752eff974c6650f8ee9f1712deb8620be986bbf38be204b659/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617276696e6f737377616c642f73746174616d69632d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marvinosswald/statamic-client)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c33d2aefa6b210ad55e7b20a3224795ef71e57e6e7d078cbc41a27d31ea6f333/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d617276696e6f737377616c642f73746174616d69632d636c69656e742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/marvinosswald/statamic-client/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/170e1844d147a6df06ccd9ac1e88b7d47f536e1a47ea0ce3297cb32df0ea1796/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d617276696e6f737377616c642f73746174616d69632d636c69656e742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/marvinosswald/statamic-client/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c7f5fbb9b45472e154841ca76fc50c6a53f57c8e0b80508ddc41aa1d9a59fd6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617276696e6f737377616c642f73746174616d69632d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marvinosswald/statamic-client)

This package simplifies consuming external statamic installations from your laravel application.

NOT PRODUCTION READ

Motivation
----------

[](#motivation)

- I want my apps to be hosted using Octane which Statamic doesn't support
- I don't want my application being "taken over" by Statamic
- I love statamic and want to use it for my marketing pages and as a source for content pages within my app

Roadmap
-------

[](#roadmap)

- Pass through views, needs specific setup on your statamic installation
    - initial implementation done
- Auto discover entries of specific collections
- Load navigation from api
- Load globals from api

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

[](#installation)

You can install the package via composer:

```
composer require marvinosswald/statamic-client
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="statamic-client-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="statamic-client-config"
```

This is the contents of the published config file:

```
return [
    'host_url' => env("STATAMIC_HOST_URL"),
    'pass_through' => [
        "enabled" => env('STATAMIC_PASSTHROUGH_ENABLED', true),
        "prefix" => "cms",
        'middleware' => ["web"],
        "view" => "statamic-client::pass-through"
    ],
    'discover' => [
        'enabled' => env('STATAMIC_DISCOVER_ENABLED', true),
    ]
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="statamic-client-views"
```

Usage
-----

[](#usage)

```
$statamicClient = new Marvinosswald\StatamicClient();
echo $statamicClient->echoPhrase('Hello, Marvinosswald!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Marvin Osswald](https://github.com/marvinosswald)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance58

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

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

---

Top Contributors

[![marvinosswald](https://avatars.githubusercontent.com/u/1621844?v=4)](https://github.com/marvinosswald "marvinosswald (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

### Embed Badge

![Health badge](/badges/marvinosswald-statamic-client/health.svg)

```
[![Health](https://phpackages.com/badges/marvinosswald-statamic-client/health.svg)](https://phpackages.com/packages/marvinosswald-statamic-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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