-
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
1 parent
d5f2e0d
commit 4f8231e
Showing
3 changed files
with
75 additions
and
2 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 |
---|---|---|
|
@@ -19,4 +19,4 @@ script: | |
- composer test | ||
|
||
after_script: | ||
- php vendor/bin/coveralls -v | ||
- php vendor/bin/php-coveralls -v |
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,10 @@ | ||
# Changelog | ||
|
||
All Notable changes to `gordonlesti/longest-common-subsequence` will be documented in this file. | ||
|
||
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. | ||
|
||
## 1.0.0 - 2019-10-17 | ||
|
||
### Added | ||
- Created class `LongestCommonSubsequence` with static function `lcs` and tests |
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 |
---|---|---|
@@ -1,2 +1,65 @@ | ||
# LongestCommonSubsequence | ||
PHP Implementation of Longest common subsequence algorith | ||
|
||
[![Latest Version on Packagist][ico-version]][link-packagist] | ||
[![Software License][ico-license]](LICENSE.md) | ||
[![Build Status][ico-travis]][link-travis] | ||
[![Coverage Status][ico-coveralls]][link-coveralls] | ||
[![Total Downloads][ico-downloads]][link-downloads] | ||
|
||
PHP Implementation of Longest common subsequence algorith that works with UTF-8. | ||
|
||
## Install | ||
|
||
Via Composer | ||
|
||
``` bash | ||
$ composer require gordonlesti/longest-common-subsequence | ||
``` | ||
|
||
## Usage | ||
|
||
``` php | ||
use GordonLesti\LongestCommonSubsequence\LongestCommonSubsequence; | ||
``` | ||
|
||
With default default costs. | ||
|
||
``` php | ||
$$lcsDist = LongestCommonSubsequence::lcs("DABDC", "CBDBBAC"); | ||
``` | ||
|
||
## Change log | ||
|
||
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. | ||
|
||
## Testing | ||
|
||
``` bash | ||
$ composer test | ||
``` | ||
|
||
## Security | ||
|
||
If you discover any security related issues, please email info@gordonlesti.com instead of using the issue tracker. | ||
|
||
## Credits | ||
|
||
- [Gordon Lesti][link-author] | ||
- [All Contributors][link-contributors] | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE) for more information. | ||
|
||
[ico-version]: https://img.shields.io/packagist/v/gordonlesti/longest-common-subsequence.svg?style=flat-square | ||
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square | ||
[ico-travis]: https://img.shields.io/travis/GordonLesti/LongestCommonSubsequence/master.svg?style=flat-square | ||
[ico-coveralls]: https://img.shields.io/coveralls/GordonLesti/LongestCommonSubsequence/master.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/gordonlesti/longest-common-subsequence.svg?style=flat-square | ||
|
||
[link-packagist]: https://packagist.org/packages/gordonlesti/longest-common-subsequence | ||
[link-travis]: https://travis-ci.org/GordonLesti/LongestCommonSubsequence | ||
[link-coveralls]: https://coveralls.io/r/GordonLesti/LongestCommonSubsequence?branch=master | ||
[link-downloads]: https://packagist.org/packages/gordonlesti/longest-common-subsequence | ||
[link-author]: https://gordonlesti.com | ||
[link-contributors]: ../../contributors |