christopher-paul-shaw / article
There is no license information available for the latest version (0.0.6) of this package.
FileBased Article Management
0.0.6
2019-01-25 12:35 UTC
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2024-10-29 03:53:34 UTC
README
This class interacts with articles stored within files on disk, and allows listing, searching and viewing of the files.
Usage
$article = new Article();
# List All Articles
$list = $article->list();
# Search Articles
$search = $article->list("Your Search Term");
# Load (View)
$view = $article->load("your-file");
# Get List Of Categories
$categories = $article->getCategories();
Test
As features are added, there will be new tests to prove they work as intended. You can run the tests yourself using the following command.
vendor/bin/phpunit test