PHPackages                             lamoni/netconf - 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. lamoni/netconf

ActiveLibrary

lamoni/netconf
==============

A vendor-agnostic PHP NETCONF implementation

v1.0.1(8y ago)819.9k↓100%8[2 issues](https://github.com/lamoni/netconf/issues)1MITPHPPHP &gt;= 5.4.16

Since Apr 1Pushed 7y agoCompare

[ Source](https://github.com/lamoni/netconf)[ Packagist](https://packagist.org/packages/lamoni/netconf)[ Docs](https://github.com/lamoni/netconf)[ RSS](/packages/lamoni-netconf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

NETCONF
-------

[](#netconf)

This is a vendor-agnostic PHP implementation of NETCONF. I developed this so I could extend a Junos (Juniper) specific NETCONF API off of it, and decided to share it publicly.

Targeted RFCs
-------------

[](#targeted-rfcs)

- RFC6241 - Network Configuration Protocol (NETCONF) -
- RFC6242 - Using the NETCONF Protocol over Secure Shell (SSH) -

Dependencies
------------

[](#dependencies)

- PHP &gt;= 5.4
- phpseclib ()

To Do
-----

[](#to-do)

- Attributes for sendRaw need to be sanitized correctly ()
- Elements with attribute naming for subtree filters need to be implemented ("6.4.8. Elements with Attribute Naming")
- Parse capabilities based on IANA list:

Examples
--------

[](#examples)

Initializing NETCONF using password authentication and then sending a custom RPC call
-------------------------------------------------------------------------------------

[](#initializing-netconf-using-password-authentication-and-then-sending-a-custom-rpc-call)

```
$netConf = new NetConf(
    "192.168.0.100",
    new NetConfAuthPassword(
        [
            "username" => "lamoni",
            "password" => "phpsux"
        ]
    )
);

echo $netConf->sendRPC(
    "".
        "".
            "".
        "".
    ""
);
```

---

Editing the configuration of a Junos device and committing the changes
----------------------------------------------------------------------

[](#editing-the-configuration-of-a-junos-device-and-committing-the-changes)

```
$netConf->editConfig(
    "

                fe-0/0/0
                Testing netconf

    ",
    'candidate',
    ['custom-param' => 'custom-value']
);

if ($netConf->commit()->isRPCReplyOK()) {
    echo "Successfully committed, dude!";
}
else {
    echo "Something's wrong, man.";
}
```

---

Using NETCONF's subtree filters to get certain config
-----------------------------------------------------

[](#using-netconfs-subtree-filters-to-get-certain-config)

```
$getUsersNames = $netConf->getConfig(
    [
       "configuration/system/login/user" => [
           [
               "name"=>"user"
           ]
       ]
    ]
);
```

---

Considerations
--------------

[](#considerations)

- Namespaces?
- Heavier use of Exceptions?
- test-option: The element MAY be specified only if the device advertises the :validate:1.1 capability (Section 8.6).
- Should I be implicitly locking/unlocking the config for editConfig() () and commit() () calls?
- Should I remove the long list of arguments for argument-heavy methods and replace them with a single array?
    - Pros
        - it looks nicer
        - allows for extension in the future without requiring heavy refactoring
    - Cons
        - Methods will require some extract() type code at the top, along with validation of keys passed through (abstract class that?)
        - IDEs argument suggestion won't work(?)
- XPath capability in filter?

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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

Every ~933 days

Total

2

Last Release

3123d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11b77fa579fae487008ef56c12aea1e891e8be11cb6062fed9b4002a20b58872?d=identicon)[lamoni](/maintainers/lamoni)

---

Top Contributors

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

---

Tags

phpnetconf

### Embed Badge

![Health badge](/badges/lamoni-netconf/health.svg)

```
[![Health](https://phpackages.com/badges/lamoni-netconf/health.svg)](https://phpackages.com/packages/lamoni-netconf)
```

###  Alternatives

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

9.4k2.8k](/packages/leantime-leantime)[egroupware/egroupware

EGroupware extends a classic groupware with an integrated CRM-system, a secure file-server and Collabora Online Office.

2891.6k](/packages/egroupware-egroupware)[comgate/sdk

Comgate PHP SDK

13327.8k](/packages/comgate-sdk)[satispay/gbusiness-api-php-sdk

Satispay GBusiness API PHP SDK

19198.0k4](/packages/satispay-gbusiness-api-php-sdk)

PHPackages © 2026

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