Skip to content

Commit f9d39cf

Browse files
committed
initial commit
0 parents  commit f9d39cf

File tree

7 files changed

+2948
-0
lines changed

7 files changed

+2948
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor/
2+
/runtime/
3+
/.idea/
4+
/.php-cs-fixer.cache

.php-cs-fixer.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
// This is based on the `@Symfony` rule set documented in `vendor/friendsofphp/php-cs-fixer/doc/ruleSets/Symfony.rst`.
4+
5+
$finder = PhpCsFixer\Finder::create()
6+
->in(__DIR__ . '/src')
7+
->in(__DIR__ . '/samples');
8+
9+
return (new PhpCsFixer\Config())
10+
->setRules([
11+
// We essentially use the Symfony style guide.
12+
'@Symfony' => true,
13+
14+
// But then we have some exclusions, i.e. we disable some of the checks/rules from Symfony:
15+
// Logic
16+
'yoda_style' => false, // Allow both Yoda-style and regular comparisons.
17+
18+
// Whitespace
19+
'blank_line_before_statement' => false, // Don't put blank lines before `return` statements.
20+
'concat_space' => false, // Allow spaces around string concatenation operator.
21+
'blank_line_after_opening_tag' => false, // Allow file-level @noinspection suppressions to live on the `<?php` line.
22+
'single_line_throw' => false, // Allow `throw` statements to span multiple lines.
23+
24+
// phpDoc
25+
'phpdoc_align' => false, // Don't add spaces within phpDoc just to make parameter names / descriptions align.
26+
'phpdoc_annotation_without_dot' => false, // Allow terminating dot on @param and such.
27+
'phpdoc_no_alias_tag' => false, // Allow @link in addition to @see.
28+
'phpdoc_separation' => false, // Don't put blank line between @params, @throws and @return.
29+
'phpdoc_summary' => false, // Don't force terminating dot on the first line.
30+
])
31+
->setFinder($finder);

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# php-latex-renderer
2+
wraps latex rendering and generating with twig templates
3+
# Install
4+
```
5+
composer require
6+
```

composer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "open-administration/php-latex-renderer",
3+
"description": "Renders LaTeX Templates in PHP",
4+
"type": "libary",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Lukas Staab",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"minimum-stability": "stable",
13+
"require": {
14+
"php": "^7.4|^8.0",
15+
"symfony/process": "^5.3",
16+
"twig/twig": "^3.3",
17+
"psr/cache": "^3.0",
18+
"psr/log": "^2.0"
19+
},
20+
"require-dev": {
21+
"roave/security-advisories": "dev-latest",
22+
"friendsofphp/php-cs-fixer": "^3.2",
23+
"monolog/monolog": "^2.3"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"PhpLatexRenderer\\": "src/"
28+
}
29+
},
30+
"scripts": {
31+
"check": [
32+
"@cs"
33+
],
34+
"cs": "php-cs-fixer fix -v --diff --dry-run",
35+
"cs-fix": "php-cs-fixer fix -v --diff"
36+
}
37+
38+
}

0 commit comments

Comments
 (0)