Skip to content

Commit

Permalink
Merge pull request #15 from subjective-php/dev/issue-11
Browse files Browse the repository at this point in the history
Switch ownership to SubjectivePHP
  • Loading branch information
chadicus committed Jun 3, 2018
2 parents 2df8135 + e9388bd commit e875763
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 44 deletions.
43 changes: 23 additions & 20 deletions README.md
@@ -1,39 +1,42 @@
#Chadicus\Spl\Traits
[![Build Status](http://img.shields.io/travis/chadicus/spl-traits-php.svg?style=flat)](https://travis-ci.org/chadicus/spl-traits-php)
[![Code Quality](http://img.shields.io/scrutinizer/g/chadicus/spl-traits-php.svg?style=flat)](https://scrutinizer-ci.com/g/chadicus/spl-traits-php/)
[![Coverage Status](https://coveralls.io/repos/chadicus/spl-traits-php/badge.svg?branch=master&service=github)](https://coveralls.io/github/chadicus/spl-traits-php?branch=master)
# SubjectivePHP\Spl\Traits

[![Latest Stable Version](http://img.shields.io/packagist/v/chadicus/spl-traits.svg?style=flat)](https://packagist.org/packages/chadicus/spl-traits)
[![Total Downloads](http://img.shields.io/packagist/dt/chadicus/spl-traits.svg?style=flat)](https://packagist.org/packages/chadicus/spl-traits)
[![License](http://img.shields.io/packagist/l/chadicus/spl-traits.svg?style=flat)](https://packagist.org/packages/chadicus/spl-traits)
[![Build Status](https://travis-ci.org/subjective-php/spl-traits.svg?branch=master)](https://travis-ci.org/subjective-php/spl-traits)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/subjective-php/spl-traits/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/subjective-php/spl-traits/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/subjective-php/spl-traits/badge.svg)](https://coveralls.io/github/subjective-php/spl-traits)

[![Documentation](https://img.shields.io/badge/reference-phpdoc-blue.svg?style=flat)](http://www.pholiophp.org/chadicus/spl-traits)
[![Latest Stable Version](https://poser.pugx.org/subjective-php/spl-traits/v/stable)](https://packagist.org/packages/subjective-php/spl-traits)
[![Latest Unstable Version](https://poser.pugx.org/subjective-php/spl-traits/v/unstable)](https://packagist.org/packages/subjective-php/spl-traits)
[![License](https://poser.pugx.org/subjective-php/spl-traits/license)](https://packagist.org/packages/subjective-php/spl-traits)

[![Total Downloads](https://poser.pugx.org/subjective-php/spl-traits/downloads)](https://packagist.org/packages/subjective-php/spl-traits)
[![Daily Downloads](https://poser.pugx.org/subjective-php/spl-traits/d/daily)](https://packagist.org/packages/subjective-php/spl-traits)
[![Monthly Downloads](https://poser.pugx.org/subjective-php/spl-traits/d/monthly)](https://packagist.org/packages/subjective-php/spl-traits)

[![Documentation](https://img.shields.io/badge/reference-phpdoc-blue.svg?style=flat)](http://www.pholiophp.org/subjective-php/spl-traits)

A collection of standard traits.

##Requirements
## Requirements

Chadicus\Spl\Interfaces requires PHP 5.4 (or later).
SubjectivePHP\Spl\Interfaces requires PHP 7.0 (or later).

##Composer
To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `chadicus/spl-traits` to your project's `composer.json` file such as:
## Composer
To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `subjective-php/spl-traits` to your project's `composer.json` file such as:

```sh
composer require chadicus/spl-traits
composer require subjective-php/spl-traits
```
##Documentation
PHP docs for the project can be found [here](http://chadicus.github.io/spl-traits-php).

##Contact
## Contact
Developers may be contacted at:

* [Pull Requests](https://github.com/chadicus/spl-traits-php/pulls)
* [Issues](https://github.com/chadicus/spl-traits-php/issues)
* [Pull Requests](https://github.com/subjective-php/spl-traits/pulls)
* [Issues](https://github.com/subjective-php/spl-traits/issues)

##Project Build
## Project Build
With a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:

```sh
composer install
./vendor/bin/phpunit
./vendor/bin/phpcs
```
6 changes: 3 additions & 3 deletions composer.json
@@ -1,5 +1,5 @@
{
"name": "chadicus/spl-traits",
"name": "subjective-php/spl-traits",
"description": "A collection standard traits",
"keywords": ["spl", "traits"],
"license": "MIT",
Expand All @@ -15,9 +15,9 @@
"squizlabs/php_codesniffer": "^3.2"
},
"autoload": {
"psr-4": { "Chadicus\\Spl\\Traits\\": "src" }
"psr-4": { "SubjectivePHP\\Spl\\Traits\\": "src" }
},
"autoload-dev": {
"psr-4": { "ChadicusTest\\Spl\\Traits\\": "tests" }
"psr-4": { "SubjectivePHPTest\\Spl\\Traits\\": "tests" }
}
}
2 changes: 1 addition & 1 deletion src/ArrayAccessTrait.php
@@ -1,6 +1,6 @@
<?php

namespace Chadicus\Spl\Traits;
namespace SubjectivePHP\Spl\Traits;

trait ArrayAccessTrait
{
Expand Down
2 changes: 1 addition & 1 deletion src/CloningDisabledTrait.php
@@ -1,6 +1,6 @@
<?php

namespace Chadicus\Spl\Traits;
namespace SubjectivePHP\Spl\Traits;

/**
* Simple trait to disallow cloning on any object.
Expand Down
2 changes: 1 addition & 1 deletion src/IteratorTrait.php
@@ -1,6 +1,6 @@
<?php

namespace Chadicus\Spl\Traits;
namespace SubjectivePHP\Spl\Traits;

trait IteratorTrait
{
Expand Down
2 changes: 1 addition & 1 deletion src/MagicAccessorTrait.php
@@ -1,6 +1,6 @@
<?php

namespace Chadicus\Spl\Traits;
namespace SubjectivePHP\Spl\Traits;

trait MagicAccessorTrait
{
Expand Down
2 changes: 1 addition & 1 deletion src/SerializationDisabledTrait.php
@@ -1,6 +1,6 @@
<?php

namespace Chadicus\Spl\Traits;
namespace SubjectivePHP\Spl\Traits;

/**
* Simple trait disallowing serialization on an object.
Expand Down
4 changes: 2 additions & 2 deletions tests/ArrayAccessTraitTest.php
@@ -1,8 +1,8 @@
<?php
namespace ChadicusTest\Spl\Traits;
namespace SubjectivePHPTest\Spl\Traits;

/**
* @coversDefaultClass Chadicus\Spl\Traits\ArrayAccessTrait
* @coversDefaultClass SubjectivePHP\Spl\Traits\ArrayAccessTrait
*/
class ArrayAccessTraitTest extends \PHPUnit\Framework\TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/CloningDisabledTraitTest.php
@@ -1,8 +1,8 @@
<?php
namespace ChadicusTest\Spl\Traits;
namespace SubjectivePHPTest\Spl\Traits;

/**
* @coversDefaultClass Chadicus\Spl\Traits\CloningDisabledTrait
* @coversDefaultClass SubjectivePHP\Spl\Traits\CloningDisabledTrait
*/
class CloningDisabledTraitTest extends \PHPUnit\Framework\TestCase
{
Expand All @@ -17,7 +17,7 @@ class CloningDisabledTraitTest extends \PHPUnit\Framework\TestCase
*/
public function magicClone()
{
$object = $this->getObjectForTrait('\\Chadicus\\Spl\\Traits\\CloningDisabledTrait');
$object = $this->getObjectForTrait('\\SubjectivePHP\\Spl\\Traits\\CloningDisabledTrait');
clone $object;
}
}
4 changes: 2 additions & 2 deletions tests/IteratorTraitTest.php
@@ -1,8 +1,8 @@
<?php
namespace ChadicusTest\Spl\Traits;
namespace SubjectivePHPTest\Spl\Traits;

/**
* @coversDefaultClass Chadicus\Spl\Traits\IteratorTrait
* @coversDefaultClass SubjectivePHP\Spl\Traits\IteratorTrait
*/
class IteratorTraitTest extends \PHPUnit\Framework\TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/MagicAccessorTraitTest.php
@@ -1,8 +1,8 @@
<?php
namespace ChadicusTest\Spl\Traits;
namespace SubjectivePHPTest\Spl\Traits;

/**
* @coversDefaultClass Chadicus\Spl\Traits\MagicAccessorTrait
* @coversDefaultClass SubjectivePHP\Spl\Traits\MagicAccessorTrait
*/
class MagicAccessorTraitTest extends \PHPUnit\Framework\TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/SerializationDisabledTraitTest.php
@@ -1,8 +1,8 @@
<?php
namespace ChadicusTest\Spl\Traits;
namespace SubjectivePHPTest\Spl\Traits;

/**
* @coversDefaultClass Chadicus\Spl\Traits\SerializationDisabledTrait
* @coversDefaultClass SubjectivePHP\Spl\Traits\SerializationDisabledTrait
*/
class SerializationDisabledTraitTest extends \PHPUnit\Framework\TestCase
{
Expand All @@ -17,7 +17,7 @@ class SerializationDisabledTraitTest extends \PHPUnit\Framework\TestCase
*/
public function magicClone()
{
$object = $this->getObjectForTrait('\\Chadicus\\Spl\\Traits\\SerializationDisabledTrait');
$object = $this->getObjectForTrait('\\SubjectivePHP\\Spl\\Traits\\SerializationDisabledTrait');
serialize($object);
}
}
8 changes: 4 additions & 4 deletions tests/SimpleObject.php
@@ -1,10 +1,10 @@
<?php

namespace ChadicusTest\Spl\Traits;
namespace SubjectivePHPTest\Spl\Traits;

use Chadicus\Spl\Traits\ArrayAccessTrait;
use Chadicus\Spl\Traits\IteratorTrait;
use Chadicus\Spl\Traits\MagicAccessorTrait;
use SubjectivePHP\Spl\Traits\ArrayAccessTrait;
use SubjectivePHP\Spl\Traits\IteratorTrait;
use SubjectivePHP\Spl\Traits\MagicAccessorTrait;

/**
* Basic object to use in tests.
Expand Down

0 comments on commit e875763

Please sign in to comment.