s1syphos/php-dejure
Composer 安装命令:
composer require s1syphos/php-dejure
包简介
Linking texts with dejure.org, the Class(y) way.
关键字:
README 文档
README
A PHP library for linking legal norms in texts with dejure.org.
History
This library started as an OOP port of vernetzungsfunction.inc.php, which can be downloaded here. Since then, php-dejure heavily modified the underlying caching mechanism, now providing a broad range of fully configurable cache drivers while featuring more text processing options.
Getting started
Install this package with Composer:
composer require S1SYPHOS/php-dejure
An example implementation could look something like this:
<?php require_once('vendor/autoload.php'); use S1SYPHOS\DejureOnline; $object = new DejureOnline(); $object->setEmail('hello@mydomain.com'); $object->setTarget('_blank'); $text = '<div>'; $text .= 'This is a <strong>simple</strong> HTML text.'; $text .= 'It contains legal norms, like Art. 12 GG.'; $text .= '.. or § 433 BGB!'; $text .= '</div>'; echo $object->dejurify($text);
Roadmap
-
Add tests -
Add checks to__construct -
Attempt cache directory creation -
Improve code -
Improve code more -
Translate code (almost done) -
joinpaths, so trailing slash is no longer required -
Add cache reset function
Happy coding!
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-22