-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Park
committed
Jan 22, 2015
1 parent
516cf35
commit cd16dfd
Showing
5 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Changelog | ||
|
||
All Notable changes to `clicksco/commonmark-laravel` will be documented in this file | ||
|
||
## 1.0 - 2015-01-22 | ||
|
||
Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Contributing | ||
|
||
Contributions are **welcome** and will be fully **credited**. | ||
|
||
We accept contributions via Pull Requests on [Github](https://github.com/Clicksco/CommonMark). | ||
|
||
|
||
## Pull Requests | ||
|
||
- **[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). | ||
|
||
- **Add tests!** - Your patch won't be accepted if it doesn't have tests. | ||
|
||
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. | ||
|
||
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option. | ||
|
||
- **Create feature branches** - Don't ask us to pull from your master branch. | ||
|
||
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. | ||
|
||
- **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. | ||
|
||
|
||
## Running Tests | ||
|
||
``` bash | ||
$ phpunit | ||
``` | ||
|
||
|
||
**Happy coding**! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# CommonMark Laravel 4 Wrapper | ||
|
||
<!--[![Latest Version](https://img.shields.io/github/release/clicksco/commonmark-laravel.svg?style=flat-square)](https://github.com/Clicksco/CommonMark/releases)--> | ||
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) | ||
<!--[![Build Status](https://img.shields.io/travis/clicksco/commonmark-laravel/master.svg?style=flat-square)](https://travis-ci.org/clicksco/commonmark-laravel) | ||
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/clicksco/commonmark-laravel.svg?style=flat-square)](https://scrutinizer-ci.com/g/clicksco/commonmark-laravel/code-structure) | ||
[![Quality Score](https://img.shields.io/scrutinizer/g/clicksco/commonmark-laravel.svg?style=flat-square)](https://scrutinizer-ci.com/g/clicksco/commonmark-laravel) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/clicksco/commonmark-laravel.svg?style=flat-square)](https://packagist.org/packages/clicksco/commonmark-laravel)--> | ||
|
||
Trivial Laravel 4 wrapper class for The PHP League's CommonMark package. | ||
|
||
## Install | ||
|
||
Require the package with Composer | ||
|
||
``` bash | ||
$ composer require clicksco/commonmark-laravel | ||
``` | ||
|
||
Update app/config/app.php with the ServiceProvider and Facade | ||
|
||
``` php | ||
'providers' => [ | ||
... | ||
'Clicksco\CommonMark\ServiceProvider', | ||
... | ||
]; | ||
``` | ||
|
||
``` php | ||
'aliases' => [ | ||
... | ||
'CommonMark' => 'Clicksco\CommonMark\Facade', | ||
... | ||
]; | ||
``` | ||
|
||
## Usage | ||
|
||
``` php | ||
echo CommonMark::convertToHtml('# Hello, World!'); | ||
``` | ||
|
||
## Testing | ||
|
||
``` bash | ||
$ phpunit | ||
``` | ||
|
||
## Contributing | ||
|
||
Please see [CONTRIBUTING](https://github.com/clicksco/commonmarklaravel/blob/master/CONTRIBUTING.md) for details. | ||
|
||
## Credits | ||
|
||
- [Jon Park](https://github.com/jonspark) | ||
- [All Contributors](https://github.com/clicksco/commonmarklaravel/contributors) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters