定制 s1syphos/php-dejure 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

s1syphos/php-dejure

Composer 安装命令:

composer require s1syphos/php-dejure

包简介

Linking texts with dejure.org, the Class(y) way.

README 文档

README

Release License Issues Status

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)
  • join paths, so trailing slash is no longer required
  • Add cache reset function

Happy coding!

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固