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

ActiveLibrary

editllc/php-montage
===================

PHP library for Montage.

v1.0.3(10y ago)0381PHPPHP &gt;=5.5.0

Since Jun 8Pushed 10y ago10 watchersCompare

[ Source](https://github.com/EditLLC/php-montage)[ Packagist](https://packagist.org/packages/editllc/php-montage)[ RSS](/packages/editllc-php-montage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (1)

PHP Wrapper for Edit LLC's Montage API
======================================

[](#php-wrapper-for-edit-llcs-montage-api)

This is a PHP wrapper class that gives easy access to Edit LLC's Montage API.

[![Code Climate](https://camo.githubusercontent.com/b1e3496673f4595d5d0f8cfbca6c1f5061096c7979d60f1b06c3ad5cfdf78f9c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f67676f666f7274682f7068702d6d6f6e746167652f6261646765732f6770612e737667)](https://codeclimate.com/github/ggoforth/php-montage)

### Requirements

[](#requirements)

PHP &gt;= 5.5.0 (uses generators)

### Usage

[](#usage)

```
require "vendor/autoload.php";

use Montage\Montage;

//get an authenticated instance of the Montage wrapper
$montage = (new Montage('yourSubdomain'))->auth($username, $password);

//or if you have a token already
$montage = new Montage('yourSubdomain', $token);

//get a MontageSchema instance
$moviesSchema = $montage->schema('movies');

//or, magically...
$movieSchema = $montage->movies();

//Documents is an iterable object of the schema documents
foreach ($moviesSchema->documents as $movie) {
    echo sprintf("Movie Title: %s\n", $movie->title);
}

```

The `->auth($username, $password)` will authenticate with Montage, and set a `$token` on the Montage class instance. The token is required for making calls against the api, and is sent on all api requests as an `Authorization` header. If you already posess a Montage API token you can construct the `Montage` instance by providing your token and bypass the need to call the `auth` function.

If you need to provide more fine grained control you can call the `filter`, `limit`, `offset` and `orderBy` functions provided on the documents property.

```
$movieSchema->documents->filter(['title__icontains' => 'Jurassic']); //case insensitive title search
$movieSchema->documents->limit(5);
$movieSchema->documents->orderBy('title', 'desc');
$movieSchema->documents->offset(5);

foreach ($moviesSchema->documents as $movie) {
    echo sprintf("Movie Title: %s\n", $movie->title);
}

```

### CRUD Operations:

[](#crud-operations)

The `documents` property of any schema holds the CRUD functions. For instance:

```
$montage = new Montage('yourSubdomain', $token);
$movies = $montage->movies();

//Create a new movie object / array.  Fields must match the Schema already configured in montage.
$movie = new stdClass;
$movie->title = 'Gleaming the Cube';
$movie->year = 1989;
$movie->rank = 550;

//persist a new movie to montage
$movie = $movies->documents->save($movie);

//Montage will return an array of all movies created as it's possible to create more than one object at a time.
$movie = $movie->data[0];

//get the movie from montage
$movies->documents->get($movie->id);

//update the movie in montage
$movie->title = $movie->title . ' - You wish you could skate like them.';
$movies->documents->update($movie->id, $movie);

//delete the movie
$movies->documents->delete($movie->id);

```

### Tests

[](#tests)

Tests are available and more will be added as time permits. Most test coverage is currently focused on the `Montage`class. To run the tests:

`./vendor/phpunit/phpunit/phpunit ./tests`

### Roadmap

[](#roadmap)

- More test coverage
- Laravel Service Provider

### Contributing

[](#contributing)

1. Fork it (  )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3993d ago

### Community

Maintainers

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

---

Top Contributors

[![ggoforth](https://avatars.githubusercontent.com/u/1167712?v=4)](https://github.com/ggoforth "ggoforth (45 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[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)
