From 6a10616891e057c86e6c51266ffc7472ac33a36d Mon Sep 17 00:00:00 2001 From: Dmitriy Vorontsov Date: Sun, 27 Aug 2023 18:59:29 +0400 Subject: [PATCH 1/2] add custom package from packagist --- composer.json | 18 +++++++++++++++++ composer.lock | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/index.php | 10 ++++++++++ 3 files changed, 83 insertions(+) create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 src/index.php diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..ed1faeaca --- /dev/null +++ b/composer.json @@ -0,0 +1,18 @@ +{ + "name": "supervoron/otus-php-pro", + "type": "project", + "autoload": { + "psr-4": { + "Supervoron\\OtusPhpPro\\": "src/" + } + }, + "authors": [ + { + "name": "Dmitriy Vorontsov", + "email": "vorontsof@mail.ru" + } + ], + "require": { + "supervoron/formatter-composer-package": "^1.0" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 000000000..febdc4ac4 --- /dev/null +++ b/composer.lock @@ -0,0 +1,55 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "78565d39bfa72d7e06df04d4eba2e5e1", + "packages": [ + { + "name": "supervoron/formatter-composer-package", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/supervoron1/formatter-composer-package.git", + "reference": "845b63b61f14b67f537a889bbeaea4b8c6fe3fe9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/supervoron1/formatter-composer-package/zipball/845b63b61f14b67f537a889bbeaea4b8c6fe3fe9", + "reference": "845b63b61f14b67f537a889bbeaea4b8c6fe3fe9", + "shasum": "" + }, + "require": { + "php": ">=7.4 " + }, + "type": "library", + "autoload": { + "psr-4": { + "supervoron\\FormatterComposerPackage\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "authors": [ + { + "name": "Dmitriy Vorontsov", + "email": "vorontsof@mail.ru" + } + ], + "support": { + "issues": "https://github.com/supervoron1/formatter-composer-package/issues", + "source": "https://github.com/supervoron1/formatter-composer-package/tree/v1.0.0" + }, + "time": "2023-08-27T13:48:37+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/src/index.php b/src/index.php new file mode 100644 index 000000000..492cb3a50 --- /dev/null +++ b/src/index.php @@ -0,0 +1,10 @@ +toUpperCase('get it up')); \ No newline at end of file From c97ed9eed7802fd4cbf9ca8652855324d03fc31b Mon Sep 17 00:00:00 2001 From: Dmitriy Vorontsov Date: Sun, 27 Aug 2023 19:05:24 +0400 Subject: [PATCH 2/2] code style hotfix --- src/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.php b/src/index.php index 492cb3a50..250a2cb37 100644 --- a/src/index.php +++ b/src/index.php @@ -7,4 +7,4 @@ require '../vendor/autoload.php'; $stringFormatter = new StringFormatter(); -echo ($stringFormatter->toUpperCase('get it up')); \ No newline at end of file +echo ($stringFormatter->toUpperCase('get it up'));