From 08372c86bb06eb3f3812d6e4518b5454d4635803 Mon Sep 17 00:00:00 2001 From: Sem Schilder Date: Wed, 26 Jun 2019 11:00:50 +0200 Subject: [PATCH 1/5] Add initial version of composer init --- .gitignore | 1 + composer.json | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .gitignore create mode 100644 composer.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57872d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vendor/ diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..545ec31 --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "name": "transip/transip-api-php", + "description": "The TransIP API offers you the opportunity to use our services freely.", + "type": "library", + "license": "Apache License 2.0", + "authors": [ + { + "name": "TransIP", + "email": "support@transip.eu" + } + ], + "require": {} +} From 7312016672abeb0c0eb5cdb8637d403b024f1b67 Mon Sep 17 00:00:00 2001 From: Sem Schilder Date: Wed, 26 Jun 2019 11:07:15 +0200 Subject: [PATCH 2/5] Add autoload key to composer.json --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 545ec31..b6ad91b 100644 --- a/composer.json +++ b/composer.json @@ -9,5 +9,8 @@ "email": "support@transip.eu" } ], + "autoload": { + "classmap": ["Transip/"] + }, "require": {} } From bb9cac18f3f4800ef2b4718edc805cbd5a1f50ed Mon Sep 17 00:00:00 2001 From: Sem Schilder Date: Wed, 26 Jun 2019 11:39:07 +0200 Subject: [PATCH 3/5] Test PSR-0 auto loading --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b6ad91b..dec4fd3 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "autoload": { - "classmap": ["Transip/"] + "psr-0": { "Transip_": "Transip/" } }, "require": {} } From 7700bdf78ccc309f26fbac3fc98683abe0b6f1b7 Mon Sep 17 00:00:00 2001 From: Sem Schilder Date: Wed, 26 Jun 2019 11:40:18 +0200 Subject: [PATCH 4/5] Use empty prefix --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index dec4fd3..6d74a2c 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "autoload": { - "psr-0": { "Transip_": "Transip/" } + "psr-0": { "": "Transip/" } }, "require": {} } From 7250f6de673972ae76f34361f0c03eb9d37a01f0 Mon Sep 17 00:00:00 2001 From: Sem Schilder Date: Wed, 26 Jun 2019 11:41:16 +0200 Subject: [PATCH 5/5] Restore classmap autoload --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6d74a2c..b6ad91b 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "autoload": { - "psr-0": { "": "Transip/" } + "classmap": ["Transip/"] }, "require": {} }