2017 © Pedro Peláez
 

library directive

A PHP library to manipulate nginx configurations

image

seiler/directive

A PHP library to manipulate nginx configurations

  • Sunday, January 15, 2017
  • by fredericseiler
  • Repository
  • 2 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Directive

Software License, (*1)

Directive helps you to manipulate Nginx configurations in PHP with ease., (*2)

Requirements

PHP 7.3 > 8.0, (*3)

Installation

$ composer require seiler/directive
<?php

use Seiler\Directive;

Usage

  1. Load a Nginx configuration:
$config = file_get_contents('/path/to/nginx/config/file.conf');

$directive = Directive::fromString($config);
  1. Add your changes:
$directive->server->serverName->value('example.org');
  1. Save your changes:
file_put_contents('/path/to/nginx/config/file.conf', $directive);

License

The MIT License (MIT). Please see License File for more information., (*4)

The Versions

15/01 2017

dev-master

9999999-dev https://github.com/fredericseiler/directive

A PHP library to manipulate nginx configurations

  Sources   Download

MIT

The Requires

 

The Development Requires

directive seiler