sixlive / parsedown-alert
Alert component for Parsedown PHP
v0.1.0
2018-11-05 03:10 UTC
Requires
- php: ^7.1|7.2
- erusev/parsedown: 1.8.0-beta-1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10
- larapack/dd: ^1.0
- phpunit/phpunit: ^6.0|^7.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-12-07 05:52:46 UTC
README
NOTE: This requires v1.8 of Parsedown, which has not been released yet.
Installation
You can install the package via composer:
> composer require sixlive/parsedown-alert
Usage
# Here is a post ::: warning **Warning** This post is over a year old. Some of this information may be out of date. :::
$parsedown = new \sixlive\ParsedownAlert; $parsedown->text(file_get_contents(__DIR__.'/README.md'));
<div class="alert-warning"> <strong>Warning</strong> <p>This post is over a year old. Some of this information may be out of date.</p> </div>
Testing
> composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Code Style
In addition to the php-cs-fixer rules, StyleCI will apply the Laravel preset.
Linting
> composer styles:lint
Fixing
> composer styles:fix
Security
If you discover any security related issues, please email oss@tjmiller.co instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.