From 6908cf34899f74c3573641d783eb4650bf07d62c Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sun, 20 Aug 2017 17:43:16 +0800 Subject: [PATCH] Init Package --- .gitignore | 2 ++ .travis.yml | 11 +++++++++++ LICENSE | 21 +++++++++++++++++++++ composer.json | 24 ++++++++++++++++++++++++ phpunit.xml | 16 ++++++++++++++++ readme.md | 19 +++++++++++++++++++ 6 files changed, 93 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 composer.json create mode 100644 phpunit.xml create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfd6caa --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor +composer.lock \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f6c21d3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: php + +php: + - 7.0 + - 7.1 + +before_script: + - travis_retry composer install --prefer-source --no-interaction + +script: + - phpunit tests diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c4e6453 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Nafies Luthfi + +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 new file mode 100644 index 0000000..2fc2f0f --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "luthfi/simple-crud-generator", + "description": "A simple CRUD generator for Laravel 5.4.", + "license": "MIT", + "authors": [ + { + "name": "Nafies Luthfi", + "email": "nafiesl@gmail.com" + } + ], + "autoload": { + "psr-4": { + "Luthfi\\CrudGenerator\\": "src/" + } + }, + "minimum-stability": "dev", + "require": { + "php": ">=7.0", + "illuminate/support": "dev-master" + }, + "require-dev": { + "orchestra/testbench": "~3.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..0832dd4 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,16 @@ + + + + + ./tests + + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..ae5d5ca --- /dev/null +++ b/readme.md @@ -0,0 +1,19 @@ +# Laravel Simple CRUD Generator + +This is a package to create simple CRUD on your Laravel 5.4 application. + +## How to install + +Install this package through [Composer](https://getcomposer.org). Run following from terminal: + +``` +composer require luthfi/simple-crud-generator +``` + +Update `config/app.php`, add provider and aliases : +```php +// providers +Luthfi\CrudGenerator\CrudGeneratorServiceProvider::class, +``` + +## How to use