From 5bfbf6b893f6f9b10d3c3bc4718e5d28e6d8520d Mon Sep 17 00:00:00 2001 From: Ur Dream <48607315+gs-nasc@users.noreply.github.com> Date: Tue, 26 Jan 2021 20:00:47 -0300 Subject: [PATCH] Creating composer library --- .gitignore | 1 + LICENSE | 21 +++++++++++++++++++++ composer.json | 18 ++++++++++-------- Holiday.php => src/Holiday.php | 0 4 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 .gitignore create mode 100644 LICENSE rename Holiday.php => src/Holiday.php (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57872d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vendor/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4de2a6d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Gabriel + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/composer.json b/composer.json index 6a9c0bc..5783a20 100644 --- a/composer.json +++ b/composer.json @@ -1,17 +1,19 @@ { - "name": "gs-nasc/BrazilHoliday", - "description": "A simple hello world composer package", + "name": "gs-nasc/brazil-holiday", + "description": "PHP Package thats verify if date is or not a holiday.", "type": "library", "license": "MIT", "authors": [ { - "name": "Ogbonna Vitalis", - "email": "agavitalisogbonna@gmail.com" + "name": "Gabriel Nascimento", + "email": "gsnaxsi@gmail.com" } ], "minimum-stability": "stable", + "require": {}, "autoload": { - "psr-4": {"vitalis\\HelloWorld\\": "src/"} - }, - "require": {} -} + "psr-4": { + "BrazilHoliday\\": "src/" + } + } +} \ No newline at end of file diff --git a/Holiday.php b/src/Holiday.php similarity index 100% rename from Holiday.php rename to src/Holiday.php