2017 © Pedro Peláez
 

library php-dotnet

.Net like methods and classes in PHP

image

belsrc/php-dotnet

.Net like methods and classes in PHP

  • Friday, April 4, 2014
  • by belsrc
  • Repository
  • 1 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP-dotNet

Build Status Latest Stable Version License Dependency Status, (*1)

PHP wrapper classes that mimic the .Net List, Dictionary and String classes. Full documentation can be found here., (*2)

Install

You can install it by downloading the release and including it in your project or, preferably, using Composer., (*3)

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

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</br>";
    }

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

License

PHP-dotNet is released under a BSD 3-Clause License, (*4)

Copyright © 2013-2014, Bryan Kizer All rights reserved., (*5)

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

  • 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., (*7)

The Versions

04/04 2014

dev-master

9999999-dev https://github.com/belsrc/php-dotnet

.Net like methods and classes in PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4

 

The Development Requires

by Bryan Kizer

collection list string dictionary .net

04/04 2014

2.0.0

2.0.0.0 https://github.com/belsrc/php-dotnet

.Net like methods and classes in PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4

 

The Development Requires

by Bryan Kizer

collection list string dictionary .net

20/12 2013

v1.1

1.1.0.0 https://github.com/belsrc/PHP-dotNet

.Net like methods and classes in PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4

 

The Development Requires

by Bryan Kizer

collection list string dictionary .net

19/12 2013

v1.0

1.0.0.0 https://github.com/belsrc/PHP-dotNet

.Net like methods and classes in PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.1.0

 

The Development Requires

by Bryan Kizer

collection list string dictionary .net