PHPackages                             bennetgallein/bind-php-wrapper - 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. bennetgallein/bind-php-wrapper

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

bennetgallein/bind-php-wrapper
==============================

A Wrapper to bind the PythonAPI to PHP

v0.1(7y ago)043PHPPHP &gt;=7.2

Since Oct 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bennetgallein/BIND-PHPWrapper)[ Packagist](https://packagist.org/packages/bennetgallein/bind-php-wrapper)[ RSS](/packages/bennetgallein-bind-php-wrapper/feed)WikiDiscussions master Synced 2w ago

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

BIND-PHPWrapper
===============

[](#bind-phpwrapper)

This a PHP Library to communincate with the [Python REST API](https://github.com/bennetgallein/BIND-PythonAPI) for BIND DNS-Server.

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

[](#installation)

`composer require bennetgallein/bind-php-wrapper`

Getting started
---------------

[](#getting-started)

This library requires the Python API to be setup up correctly and working. If that is the case, follow these Instructions:

### create new BIND Instance:

[](#create-new-bind-instance)

```
$bind = new BIND("192.168.1.104", 5000, false);
```

Parameters:

- IP (no default)
- Port (default: 5000)
- HTTPS (default: false) Important: Only use http if you are in a safe local enviorment. Otherwise a Reverse Proxy is the way to go!

### List all Records for a Zone:

[](#list-all-records-for-a-zone)

```
$a = $bind->getZone("gallein2.de");
```

This returns a new `Zone` Object:

```
$a->getDomain(); // returns the Domains name
$a->getRecords(); // returns an array of Record-Objects
```

The `Record` Object:

```
foreach ($a->getRecords() as $record) {
    echo $record->getName(); // The name, like '@', 'wwww', 'test', 'test2', ...
    echo $record->getAnswer(); // the response the DNS Server will give
    echo $record->getRecordType(); // the Record Type, like 'A', 'AAAA', 'MX', ...
    echo $record->getTTL(); // The TTL (Time To Live) of the Entry.
}
```

### Update/set a Record:

[](#updateset-a-record)

```
$res = $bind->addRecord("gallein2.de", "86400", "A", "192.168.1.1");
if ($res) {
    // yeah, success
} else {
    // no success
}
```

### Delete a Record:

[](#delete-a-record)

```
$res = bind->deleteRecord("gallein2.de", "86400", "A", "192.168.1.1");
if ($res) {
    // yeah, success
} else {
    // no success
}
```

Contributions and Issues are open
---------------------------------

[](#contributions-and-issues-are-open)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2828d ago

### Community

Maintainers

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

---

Top Contributors

[![bennetgallein](https://avatars.githubusercontent.com/u/15325891?v=4)](https://github.com/bennetgallein "bennetgallein (12 commits)")

### Embed Badge

![Health badge](/badges/bennetgallein-bind-php-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/bennetgallein-bind-php-wrapper/health.svg)](https://phpackages.com/packages/bennetgallein-bind-php-wrapper)
```

###  Alternatives

[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

691.7M17](/packages/sylius-refund-plugin)[open-feature/sdk

PHP implementation of the OpenFeature SDK

42682.1k18](/packages/open-feature-sdk)[seboettg/citeproc-php

Full-featured CSL processor (https://citationstyles.org)

771.3M28](/packages/seboettg-citeproc-php)[timeweb/phpstan-enum

Enum class reflection extension for PHPStan

443.3M25](/packages/timeweb-phpstan-enum)[php-unit-conversion/php-unit-conversion

A fully PSR-4 compatible PHP library for converting between standard units of measure.

691.2M2](/packages/php-unit-conversion-php-unit-conversion)[tomaj/hermes

Simple php background processing library

38258.0k7](/packages/tomaj-hermes)

PHPackages © 2026

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