[PR #90] [MERGED] PhpDnsServer phar and cli phar #96

Closed
opened 2026-03-04 23:24:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/90
Author: @xaoseric
Created: 9/23/2019
Status: Merged
Merged: 2/21/2020
Merged by: @samuelwilliams

Base: masterHead: master


📝 Commits (8)

  • 934cfc5 add support for running PhpDnsServer from command line with a filesystem resolver
  • 7b74ea0 default to current directory on windows and /etc/phpdnsserver directory on unix
  • e2378a7 implement fileconfig reading and saving
  • 23e8726 fix ServerTest
  • 4330ec4 Server constructor cleanup, only register filesystem if needed
  • dbaa637 whitespace fixes
  • 12fd80a added a php based installer, and updated readme
  • 5f5a581 ran php-cs-fixer against the updates

📊 Changes

21 files changed (+771 additions, -4 deletions)

View changed files

📝 README.md (+19 -0)
bin/PhpDnsConsole.php (+13 -0)
bin/PhpDnsInstaller.php (+65 -0)
bin/PhpDnsServer.php (+65 -0)
📝 composer.json (+11 -2)
console.box.json (+13 -0)
installer.box.json (+13 -0)
server.box.json (+13 -0)
src/Config/FileConfig.php (+76 -0)
src/Config/RecursiveArrayObject.php (+31 -0)
src/Console/CommandServer.php (+31 -0)
src/Console/Commands/VersionCommand.php (+33 -0)
src/Exception/ConfigFileNotFoundException.php (+18 -0)
src/Exception/InvalidZoneFileException.php (+18 -0)
src/Exception/ZoneFileNotFoundException.php (+18 -0)
src/Filesystem/FilesystemManager.php (+99 -0)
📝 src/Resolver/AbstractResolver.php (+13 -0)
src/Resolver/JsonFileSystemResolver.php (+162 -0)
📝 src/Server.php (+54 -1)
📝 tests/ServerTest.php (+1 -1)

...and 1 more files

📄 Description

Adds the beginning of a cli interface for PhpDnsServer, and a filesystem config for loading all .json files from a zones directory.

Some additional ideas, if php is running on linux or unix we could default to /etc/phpdnsserver/settings.json or /etc/phpdns.conf for a config file


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/yswery/PHP-DNS-SERVER/pull/90 **Author:** [@xaoseric](https://github.com/xaoseric) **Created:** 9/23/2019 **Status:** ✅ Merged **Merged:** 2/21/2020 **Merged by:** [@samuelwilliams](https://github.com/samuelwilliams) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (8) - [`934cfc5`](https://github.com/yswery/PHP-DNS-SERVER/commit/934cfc5fa776e4c8f40a232d91a843c4075cb380) add support for running PhpDnsServer from command line with a filesystem resolver - [`7b74ea0`](https://github.com/yswery/PHP-DNS-SERVER/commit/7b74ea0b3522ab49499f9ca5b9eb8d334ae9c147) default to current directory on windows and /etc/phpdnsserver directory on unix - [`e2378a7`](https://github.com/yswery/PHP-DNS-SERVER/commit/e2378a73e53742f329522d9510814100c828e88a) implement fileconfig reading and saving - [`23e8726`](https://github.com/yswery/PHP-DNS-SERVER/commit/23e8726b7368bc3dbad2a9d6be1bff7158e092b9) fix ServerTest - [`4330ec4`](https://github.com/yswery/PHP-DNS-SERVER/commit/4330ec41050705e718b8f8c6d74d3acb4aa17074) Server constructor cleanup, only register filesystem if needed - [`dbaa637`](https://github.com/yswery/PHP-DNS-SERVER/commit/dbaa63753d7100920634ca4df2de09258823408a) whitespace fixes - [`12fd80a`](https://github.com/yswery/PHP-DNS-SERVER/commit/12fd80a556ee19f67955e6884cbca1c1d290cdd7) added a php based installer, and updated readme - [`5f5a581`](https://github.com/yswery/PHP-DNS-SERVER/commit/5f5a58192c0a9c9910252206e18e9c438f795974) ran php-cs-fixer against the updates ### 📊 Changes **21 files changed** (+771 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+19 -0) ➕ `bin/PhpDnsConsole.php` (+13 -0) ➕ `bin/PhpDnsInstaller.php` (+65 -0) ➕ `bin/PhpDnsServer.php` (+65 -0) 📝 `composer.json` (+11 -2) ➕ `console.box.json` (+13 -0) ➕ `installer.box.json` (+13 -0) ➕ `server.box.json` (+13 -0) ➕ `src/Config/FileConfig.php` (+76 -0) ➕ `src/Config/RecursiveArrayObject.php` (+31 -0) ➕ `src/Console/CommandServer.php` (+31 -0) ➕ `src/Console/Commands/VersionCommand.php` (+33 -0) ➕ `src/Exception/ConfigFileNotFoundException.php` (+18 -0) ➕ `src/Exception/InvalidZoneFileException.php` (+18 -0) ➕ `src/Exception/ZoneFileNotFoundException.php` (+18 -0) ➕ `src/Filesystem/FilesystemManager.php` (+99 -0) 📝 `src/Resolver/AbstractResolver.php` (+13 -0) ➕ `src/Resolver/JsonFileSystemResolver.php` (+162 -0) 📝 `src/Server.php` (+54 -1) 📝 `tests/ServerTest.php` (+1 -1) _...and 1 more files_ </details> ### 📄 Description Adds the beginning of a cli interface for PhpDnsServer, and a filesystem config for loading all .json files from a zones directory. Some additional ideas, if php is running on linux or unix we could default to /etc/phpdnsserver/settings.json or /etc/phpdns.conf for a config file --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 23:24:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PHP-DNS-SERVER#96
No description provided.