PHPackages                             eighteen73/nginx-proxy-manager-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. eighteen73/nginx-proxy-manager-api

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

eighteen73/nginx-proxy-manager-api
==================================

PHP Library for controlling NginxProxyManager https://github.com/NginxProxyManager

v2.0.0(1y ago)74.3k↓50%1MITPHPPHP ^8.2CI failing

Since Jan 17Pushed 1y ago5 watchersCompare

[ Source](https://github.com/eighteen73/nginx-proxy-manager-api)[ Packagist](https://packagist.org/packages/eighteen73/nginx-proxy-manager-api)[ RSS](/packages/eighteen73-nginx-proxy-manager-api/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

Nginx Proxy Manager PHP Library
===============================

[](#nginx-proxy-manager-php-library)

PHP Library for [NginxProxyManager](https://github.com/NginxProxyManager) API.

Requirements
------------

[](#requirements)

- PHP 8.0+
- guzzlehttp/guzzle 7.4+
- ext-json extension

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

[](#installation)

```
composer require eighteen73/nginx-proxy-manager-api
```

Otherwise just download the package and add it to the autoloader.

Usage
-----

[](#usage)

Retrieve an API Token.

```
$accessToken = Eighteen73\NginxProxyManager\NginxProxyManager::createAccessToken($baseUrl, $username, $password);
```

Create a new VHost

```
$nginx = Eighteen73\NginxProxyManager\NginxProxyManager::create($baseUrl, $accessToken);
$nginx->hosts()->create([
    'access_list_id' => '0', // ID of an Access List to restrict host
    'advanced_config' => '', // Advanced Nginx rules
    'allow_websocket_upgrade' => false
    'block_exploits' => true,
    'caching_enabled' => false,
    'certificate_id' => "new", // Either ID of existing cert, or "new" to request a new cert
    'domain_names' => ['example.com'], // Array of domains
    'forward_host' => '127.0.0.1', // Backend server hostname or IP
    'forward_port' => 8080, // Backend server port
    'forward_scheme' => 'http', // Backend listen scheme/protocol
    'hsts_enabled' => true,
    'hsts_subdomains' => false,
    'http2_support' => true,
    'ssl_forced' => true,
    'locations' => [], // Custom location directives for Nginx
    'meta' => [
        'letsencrypt_agree': false,
        'dns_challenge': false,
    ],
]);
```

Update an existing record

```
$nginx = Eighteen73\NginxProxyManager\NginxProxyManager::create($baseUrl, $accessToken);
$nginx->hosts()->update($id, [
    // As create method above
]);
```

Delete a host

```
$nginx = Eighteen73\NginxProxyManager\NginxProxyManager::create($baseUrl, $accessToken);
$nginx->hosts()->delete($id);
```

Links
-----

[](#links)

- [Nginx Proxy Manager](https://github.com/NginxProxyManager)
- [License](./LICENSE)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance45

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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

Recently: every ~208 days

Total

7

Last Release

429d ago

Major Versions

v1.0.5 → v2.0.02025-04-30

### Community

Maintainers

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

---

Top Contributors

[![Muffinman](https://avatars.githubusercontent.com/u/1319568?v=4)](https://github.com/Muffinman "Muffinman (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eighteen73-nginx-proxy-manager-api/health.svg)

```
[![Health](https://phpackages.com/badges/eighteen73-nginx-proxy-manager-api/health.svg)](https://phpackages.com/packages/eighteen73-nginx-proxy-manager-api)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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