1. Go to this page and download the library: Download hardimpactdev/librarian library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hardimpactdev / librarian example snippets
use HardImpact\Librarian\Linting\Rules\BulletComplexityRule;
use HardImpact\Librarian\Linting\Rules\CompoundNounStackRule;
use HardImpact\Librarian\Linting\Rules\DocumentComplexityRule;
use HardImpact\Librarian\Linting\Rules\LongSectionStructureRule;
use HardImpact\Librarian\Linting\Rules\RequirementSmellRule;
use HardImpact\Librarian\Linting\Rules\SectionOpenerProseRule;
use HardImpact\Librarian\Linting\Rules\SentenceCaseHeadingRule;
use HardImpact\Librarian\Linting\Rules\TableProseComplexityRule;
return [
'path' => base_path('docs'),
'rules' => [
DocumentComplexityRule::class,
RequirementSmellRule::class,
SentenceCaseHeadingRule::class,
LongSectionStructureRule::class,
BulletComplexityRule::class,
SectionOpenerProseRule::class,
TableProseComplexityRule::class,
[
'rule' => CompoundNounStackRule::class,
'options' => [
'accepted_compounds' => [
'project-owned',
],
],
],
],
];