christopher-paul-shaw / article
FileBased Article Management
Installs: 430
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 2
pkg:composer/christopher-paul-shaw/article
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2025-09-29 01:59:31 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