PHP Class for Managing File Based Articles
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
data/articles
src
test/unit
.gitignore
LICENSE
README.md
composer.json
phpunit.xml

README.md

Summary

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