PHPackages                             lion2486/portainer-api - 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. lion2486/portainer-api

ActiveLibrary[API Development](/categories/api)

lion2486/portainer-api
======================

Portainer API client

v0.4.3(5y ago)0109MITPHP

Since Jan 25Pushed 5y agoCompare

[ Source](https://github.com/lion2486/portainer-php-api)[ Packagist](https://packagist.org/packages/lion2486/portainer-api)[ RSS](/packages/lion2486-portainer-api/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (8)Used By (0)

portainer-php-api
=================

[](#portainer-php-api)

Portainer API client

Install
-------

[](#install)

```
composer req mangati/portainer-api

```

Usage
-----

[](#usage)

Managing endpoints:

```
$portainer = new \Mangati\Portainer\Client('http://127.0.0.1:9000');
$portainer->auth('admin', '123456789');

$endpointsApi = $portainer->endpoints();
$endpoints    = $endpointsApi->getAll();

print_r($endpoints);
```

Managing stacks:

```
$stacksApi = $portainer->stacks($endpoints[0]['Id']);
$stacks    = $stacksApi->getAll();

print_r($stacks);

if (count($stacks)) {
    $stacksApi->delete($stacks[0]['Id']);
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~170 days

Recently: every ~243 days

Total

7

Last Release

2007d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dc83df1781c105af5f7961e43ee2d4df8a44e9e8b04edf85a8ecabfffb60b2d?d=identicon)[lion2486](/maintainers/lion2486)

---

Top Contributors

[![rogeriolino](https://avatars.githubusercontent.com/u/1065082?v=4)](https://github.com/rogeriolino "rogeriolino (8 commits)")[![lion2486](https://avatars.githubusercontent.com/u/1008156?v=4)](https://github.com/lion2486 "lion2486 (7 commits)")[![antonodintsov](https://avatars.githubusercontent.com/u/3451101?v=4)](https://github.com/antonodintsov "antonodintsov (6 commits)")

### Embed Badge

![Health badge](/badges/lion2486-portainer-api/health.svg)

```
[![Health](https://phpackages.com/badges/lion2486-portainer-api/health.svg)](https://phpackages.com/packages/lion2486-portainer-api)
```

###  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.9M271](/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)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M96](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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