PHPackages                             skydiablo/skyradius - 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. skydiablo/skyradius

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

skydiablo/skyradius
===================

The first (known to me) RADIUS server which was implemented natively in PHP!

151234PHPCI passing

Since May 18Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/skydiablo/SkyRadius)[ Packagist](https://packagist.org/packages/skydiablo/skyradius)[ RSS](/packages/skydiablo-skyradius/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

SkyRadius
=========

[](#skyradius)

The first (known to me) RADIUS server which was implemented natively in PHP! Based on the incredible possibilities of ReactPHP I was able to write this library. Currently RFC2865, RFC2866, RFC2868 + RFC2869 are implemented, if you want to contribute, you may follow up with RFC2867 (I'm always happy about PRs ;) ).

Example
-------

[](#example)

Enter `./Example/` directory:

```
cd ./Example/

```

Load vendor Libs:

```
composer install

```

Install `radclient` from `freeRADIUS`-Project:

```
sudo apt install freeradius-utils

```

Run `SkyDiablo/SkyRadius` Example-Server:

```
php radius.php

```

Run the `radclient` in an separate console session

```
echo "User-Name=test,User-Password=mypass,Framed-Protocol=PPP" | radclient -x 127.0.0.1:3500 auth test

Sent Access-Request Id 31 from 0.0.0.0:52235 to 127.0.0.1:3500 length 50
        User-Name = "test"
        User-Password = "mypass"
        Framed-Protocol = PPP
        Cleartext-Password = "mypass"
Received Access-Accept Id 31 from 127.0.0.1:3500 to 0.0.0.0:0 length 110
        Reply-Message = "Echo Test-Radius-Server"
        User-Name = "test"
        User-Password = "ѣ\3332a\274\016({\312A\257P\3623\214\273-\342\331Z\035\024:\267\254i#h'\200\262\021f˷c\305y2*\201qlNh\234\236u\377\207"
        Framed-Protocol = PPP

```

- As you can see, the echo is missing the attribute `Cleartext-Password` -&gt; it isn't implemented by default, yet ;)
- Also ignore the cryptic looking `User-Password` attribute, server-side encrypting for this attribute is also missing. But given by RFC, the server should never be doing this!

Benchmark
---------

[](#benchmark)

In extension to the example given above, you can stress-test your `SkyDiablo/SkyRadius` instance by improving the requests:

```
echo "User-Name=test,User-Password=mypass,Framed-Protocol=PPP" | radclient -n 1000 -c 99999999999 127.0.0.1:3500 auth test

```

In my setup I was able to handle 15k requests/sec at 90% CPU load with the demo-server mentioned here. For this I have started the radclient 5 times with `-n 40000` on the same server and piped the output into `> /dev/null`. Used CPU: `Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz` with 2 cores:

[![15k Benchmark Test](./Example/15k-test-result.png?raw=true "15k Benchmark Test")](./Example/15k-test-result.png?raw=true)

Running tests
-------------

[](#running-tests)

Install development dependencies from the project root:

```
composer install

```

Run the full PHPUnit suite:

```
composer test

```

Alternatively, invoke PHPUnit directly:

```
./vendor/bin/phpunit

```

Run a single test class or method:

```
./vendor/bin/phpunit tests/AttributeTest.php
./vendor/bin/phpunit --filter testMethodName

```

Configuration lives in `phpunit.xml` at the project root. Deprecations, warnings, and PHPUnit notices are printed in full after the test run (`displayDetailsOnAllIssues` is enabled). Tests require PHP 8.1 or newer (PHPUnit 12 is used as the test runner).

TODOs
-----

[](#todos)

- Attribute Dictionary Loader
    - YAML
    - JSON

Thanks
------

[](#thanks)

- Thank you [reactPHP](https://reactphp.org/) for your brilliant work!
- [BaconFist](https://github.com/BaconFist) has provided the benchmark server, thank you!

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance60

Regular maintenance activity

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/956423?v=4)[Volker](/maintainers/skydiablo)[@skydiablo](https://github.com/skydiablo)

---

Top Contributors

[![skydiablo](https://avatars.githubusercontent.com/u/956423?v=4)](https://github.com/skydiablo "skydiablo (36 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![jl-cs](https://avatars.githubusercontent.com/u/43239632?v=4)](https://github.com/jl-cs "jl-cs (1 commits)")

### Embed Badge

![Health badge](/badges/skydiablo-skyradius/health.svg)

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

###  Alternatives

[david-r-edgar/rdp

Ramer–Douglas–Peucker algorithm for polyline simplification

2334.0k](/packages/david-r-edgar-rdp)[sdkconsultoria/base

Funciones basicas y auxiliares, para generar una página web rápidamente

161.3k](/packages/sdkconsultoria-base)

PHPackages © 2026

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