christopher-paul-shaw / article
此包最新版本(0.0.6)没有可用的许可信息。
基于文件的文章管理
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-09-29 03:36:30 UTC
README
此类与磁盘上存储的文章交互,并允许列出、搜索和查看文件。
使用方法
$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();
测试
随着新功能的添加,将有新的测试来证明它们按预期工作。您可以使用以下命令自行运行测试。
vendor/bin/phpunit test