Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit 47a9ef1

Browse files
committed
Docs
1 parent 56c9b3f commit 47a9ef1

File tree

3 files changed

+84
-2
lines changed

3 files changed

+84
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Change log
2+
3+
All notable changes to this project will be documented in this file.
4+
This project adheres to [Semantic Versioning](http://semver.org/).
5+
6+
## [1.0.0] - TBC
7+
8+
* Magic Get / Set methods
9+
* toArray() method
10+
* toJson() method

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing
2+
3+
Contributions and suggestion are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via Pull Requests on [Github](https://github.com/mikebarlow/GetSet).
6+
7+
## Pull Requests
8+
9+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
10+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
11+
- **Document any change in behaviour** - Make sure the README / CHANGELOG and any other relevant documentation are kept up-to-date.
12+
- **Consider our release cycle** - We try to follow semver. Randomly breaking public APIs is not an option.
13+
- **Create topic branches** - Don't ask us to pull from your master branch.
14+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
15+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

README.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,67 @@
11
# GetSet
22

33
[![Author](http://img.shields.io/badge/author-@mikebarlow-red.svg?style=flat-square)](https://twitter.com/mikebarlow)
4-
[![Latest Version](https://img.shields.io/github/release/mikebarlow/mycal.svg?style=flat-square)](https://github.com/mikebarlow/GetSet/releases)
4+
[![Latest Version](https://img.shields.io/github/release/mikebarlow/getset.svg?style=flat-square)](https://github.com/mikebarlow/GetSet/releases)
55
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/mikebarlow/GetSet/blob/master/LICENSE)
66
[![Build Status](https://img.shields.io/travis/mikebarlow/GetSet/master.svg?style=flat-square)](https://travis-ci.org/mikebarlow/GetSet)
77

88
## Introduction
99

10-
GetSet is a PSR-2 compliant trait to be used for adding magic getters / setters to objects.
10+
GetSet is a PSR-2 compliant trait to be used for adding magic getters / setters to objects.
11+
12+
## Requirements
13+
14+
### Composer
15+
16+
GetSet requires the following:
17+
18+
* "php": ">=5.6.0"
19+
20+
And the following if you wish to run in dev mode and run tests.
21+
22+
* "phpunit/phpunit": "~5.7"
23+
* "squizlabs/php_codesniffer": "~2.0"
24+
25+
## Installation
26+
27+
### Composer
28+
29+
Simplest installation is via composer.
30+
31+
composer require snscripts/getset 0.*
32+
33+
or adding to your projects `composer.json` file.
34+
35+
{
36+
"require": {
37+
"snscripts/getset": "1.*"
38+
}
39+
}
40+
41+
### Setup
42+
43+
To initiate GetSet simply `use` the trait within your class
44+
45+
class MyClass
46+
{
47+
use \Snscripts\GetSet\GetSet;
48+
49+
...
50+
}
51+
52+
## Usage
53+
54+
55+
56+
57+
## Changelog
58+
59+
You can view the changelog [HERE](https://github.com/mikebarlow/GetSet/blob/master/CHANGELOG.md)
60+
61+
## Contributing
62+
63+
Please see [CONTRIBUTING](https://github.com/mikebarlow/GetSet/blob/master/CONTRIBUTING.md) for details.
64+
65+
## License
66+
67+
The MIT License (MIT). Please see [License File](https://github.com/mikebarlow/GetSet/blob/master/LICENSE) for more information.

0 commit comments

Comments
 (0)