aboutsummaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-04 02:44:57 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-04 02:44:57 -0400
commit43e03c125dcf0413ee9ab844ced3583c91894253 (patch)
tree5fcfbdd43d8328a58a5e0c4463504d49d5a60a9c /php
parent5e573b51b076573d49a56f13f898a1a2e8affcf7 (diff)
downloadluigi-template-43e03c125dcf0413ee9ab844ced3583c91894253.tar.bz2
luigi-template-43e03c125dcf0413ee9ab844ced3583c91894253.zip
php: add composer.json, mv luigi-template.php src/
Diffstat (limited to 'php')
-rw-r--r--php/composer.json38
-rw-r--r--php/src/luigi-template.php (renamed from php/luigi-template.php)0
2 files changed, 38 insertions, 0 deletions
diff --git a/php/composer.json b/php/composer.json
new file mode 100644
index 0000000..a00d0d4
--- /dev/null
+++ b/php/composer.json
@@ -0,0 +1,38 @@
+{
+ "name": "pablotron/luigi-template",
+ "description": "String emplate library.",
+ "homepage": "https://github.com/pablotron/luigi-template",
+ "license": "MIT",
+
+ "authors": [{
+ "name": "Paul Duncan",
+ "email": "luigi-template@pablotron.org",
+ "homepage": "https://pablotron.org/",
+ "role": "developer"
+ }],
+
+ "require": {
+ "php": "^7"
+ },
+
+ "require-dev": {
+ "phpunit/phpunit": "^7",
+ "phpdocumentor/phpdocumentor": "2.*"
+ },
+
+ "autoload": {
+ "psr-4": {
+ "Luigi\\": "src/"
+ }
+ },
+
+ "scripts": {
+ "test": [
+ "phpunit --bootstrap vendor/autoload.php tests"
+ ],
+
+ "docs": [
+ "phpdoc -d src -t docs --template=responsive-twig --title=LuigiTemplate"
+ ]
+ }
+}
diff --git a/php/luigi-template.php b/php/src/luigi-template.php
index 69e3fb8..69e3fb8 100644
--- a/php/luigi-template.php
+++ b/php/src/luigi-template.php