PHPackages                             belsrc/php-dotnet - 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. belsrc/php-dotnet

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

belsrc/php-dotnet
=================

.Net like methods and classes in PHP

2.0.0(12y ago)235BSD-3-ClausePHPPHP &gt;=5.4

Since Dec 19Pushed 12y ago1 watchersCompare

[ Source](https://github.com/belsrc/php-dotnet)[ Packagist](https://packagist.org/packages/belsrc/php-dotnet)[ Docs](https://github.com/belsrc/php-dotnet)[ RSS](/packages/belsrc-php-dotnet/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

PHP-dotNet
==========

[](#php-dotnet)

[![Build Status](https://camo.githubusercontent.com/1893a732aff5ae90397a22ea376b72d82520e2aa153623094253409debb90072/68747470733a2f2f7472617669732d63692e6f72672f62656c7372632f7068702d646f746e65742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/belsrc/PHP-dotNet) [![Latest Stable Version](https://camo.githubusercontent.com/1173eabdbda8abfa6fed2ad6440f0e9b60144bca83a0ee8eee9424d417fe7f85/68747470733a2f2f706f7365722e707567782e6f72672f62656c7372632f5048502d646f744e65742f762f737461626c652e706e67)](https://packagist.org/packages/belsrc/PHP-dotNet) [![License](https://camo.githubusercontent.com/c93788b9ca0f10852efafd63b40056d03a323a73b74ffb42fab0d08874317071/68747470733a2f2f706f7365722e707567782e6f72672f62656c7372632f5048502d646f744e65742f6c6963656e73652e706e67)](https://packagist.org/packages/belsrc/PHP-dotNet) [![Dependency Status](https://camo.githubusercontent.com/8bf034558e6a548ba73ffd6f3bcb69f5b48c3738952190f7a4943d3fcd9d33df/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533313364386235656331333735313033643030303065622f62616467652e706e67)](https://www.versioneye.com/user/projects/5313d8b5ec1375103d0000eb)

PHP wrapper classes that mimic the .Net List, Dictionary and String classes. Full documentation can be found [here](http://docs.bryanckizer.com/phpnet/).

### Install

[](#install)

You can install it by downloading the [release](https://github.com/belsrc/PHP-dotNet/releases) and including it in your project or, preferably, using Composer.

```
{
    "require": {
        "belsrc/php-dotnet": "dev-master"
    }
}

```

### Quick Example

[](#quick-example)

```
    use \PhpDotNet\Collection\ArrayList;
    use \PhpDotNet\Collection\Dictionary;
    require 'vendor/autoload.php';

    $list = new ArrayList( array(
        'Alpha',
        'Beta',
        'Gamma',
        'Delta',
        'Epsilon',
        'Zeta',
        'Eta',
        'Theta',
    ) );

    $list->any( function( $element ) {
        return $element === '';
    } );

    // false

    $altered = $list->each( function( $element ) {
        $tmp = str_split( $element );
        unset( $tmp[0] );
        return implode( '', $tmp );
    } );

    echo $altered;

    // lpha, eta, amma, elta, psilon, eta, ta, heta

    foreach( $list as $item ) {
        echo "$item";
    }

    /*
        Alpha
        Beta
        Gamma
        Delta
        Epsilon
        Zeta
        Eta
        Theta
    */
```

License
-------

[](#license)

PHP-dotNet is released under a BSD 3-Clause License

Copyright © 2013-2014, Bryan Kizer All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the Organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~53 days

Total

3

Last Release

4424d ago

Major Versions

v1.1 → 2.0.02014-04-04

PHP version history (2 changes)v1.0PHP &gt;=5.1.0

v1.1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/44835a021d9a5db3579b4f087deb37ec7da39d00150404f5caea76ac97588a48?d=identicon)[belsrc](/maintainers/belsrc)

---

Top Contributors

[![belsrc](https://avatars.githubusercontent.com/u/1832432?v=4)](https://github.com/belsrc "belsrc (17 commits)")

---

Tags

stringcollectionlistdictionarynet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/belsrc-php-dotnet/health.svg)

```
[![Health](https://phpackages.com/badges/belsrc-php-dotnet/health.svg)](https://phpackages.com/packages/belsrc-php-dotnet)
```

###  Alternatives

[phpcollection/phpcollection

General-Purpose Collection Library for PHP

1.0k64.0M34](/packages/phpcollection-phpcollection)[graze/sort

A collection of array sorting transforms and functions

12289.6k2](/packages/graze-sort)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[bnomei/kirby3-recently-modified

Kirby Section to display recently modified content pages

309.3k](/packages/bnomei-kirby3-recently-modified)[abdielcs/expanded-collection-bundle

Symfony 2 and 3 bundle for rendering a collection of entities as an expanded selectable list

1210.1k](/packages/abdielcs-expanded-collection-bundle)

PHPackages © 2026

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