This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 82a7688
Showing
6 changed files
with
234 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- Provide a general summary of the issue in the Title above --> | ||
|
||
## Detailed description | ||
|
||
Provide a detailed description of the change or addition you are proposing. | ||
|
||
Make it clear if the issue is a bug, an enhancement or just a question. | ||
|
||
## Context | ||
|
||
Why is this change important to you? How would you use it? | ||
|
||
How can it benefit other users? | ||
|
||
## Possible implementation | ||
|
||
Not obligatory, but suggest an idea for implementing addition or change. | ||
|
||
## Your environment | ||
|
||
Include as many relevant details about the environment you experienced the bug in and how to reproduce it. | ||
|
||
* Version used (e.g. PHP 5.6, HHVM 3): | ||
* Operating system and version (e.g. Ubuntu 16.04, Windows 7): | ||
* Link to your project: | ||
* ... | ||
* ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright (c) 2018 Prateek Karki <[email protected]> | ||
|
||
> 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
|
||
Describe your changes in detail. | ||
|
||
## Motivation and context | ||
|
||
Why is this change required? What problem does it solve? | ||
|
||
If it fixes an open issue, please link to the issue here (if you write `fixes #num` | ||
or `closes #num`, the issue will be automatically closed when the pull is accepted.) | ||
|
||
## How has this been tested? | ||
|
||
Please describe in detail how you tested your changes. | ||
|
||
Include details of your testing environment, and the tests you ran to | ||
see how your change affects other areas of the code, etc. | ||
|
||
## Screenshots (if appropriate) | ||
|
||
## Types of changes | ||
|
||
What types of changes does your code introduce? Put an `x` in all the boxes that apply: | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
|
||
## Checklist: | ||
|
||
Go over all the following points, and put an `x` in all the boxes that apply. | ||
|
||
Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our [continuous integration](http://www.phptherightway.com/#continuous-integration) server to make sure your [tests and code style pass](https://help.github.com/articles/about-required-status-checks/). | ||
|
||
- [ ] I have read the **[CONTRIBUTING](CONTRIBUTING.md)** document. | ||
- [ ] My pull request addresses exactly one patch/feature. | ||
- [ ] I have created a branch for this patch/feature. | ||
- [ ] Each individual commit in the pull request is meaningful. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] If my change requires a change to the documentation, I have updated it accordingly. | ||
|
||
If you're unsure about any of these, don't hesitate to ask. We're here to help! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# laragen | ||
|
||
[![Latest Version on Packagist][ico-version]][link-packagist] | ||
[![Software License][ico-license]](LICENSE.md) | ||
[![Build Status][ico-travis]][link-travis] | ||
[![Coverage Status][ico-scrutinizer]][link-scrutinizer] | ||
[![Quality Score][ico-code-quality]][link-code-quality] | ||
[![Total Downloads][ico-downloads]][link-downloads] | ||
|
||
**Note:** Replace ```Prateek Karki``` ```prateekkarki``` ```http://prateekkarki.com.np``` ```[email protected]``` ```prateekkarki``` ```laragen``` ```Extended generators for laravel``` with their correct values in [README.md](README.md), [CHANGELOG.md](CHANGELOG.md), [CONTRIBUTING.md](CONTRIBUTING.md), [LICENSE.md](LICENSE.md) and [composer.json](composer.json) files, then delete this line. You can run `$ php prefill.php` in the command line to make all replacements at once. Delete the file prefill.php as well. | ||
|
||
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what | ||
PSRs you support to avoid any confusion with users and contributors. | ||
|
||
## Structure | ||
|
||
If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following. | ||
|
||
``` | ||
bin/ | ||
config/ | ||
src/ | ||
tests/ | ||
vendor/ | ||
``` | ||
|
||
|
||
## Install | ||
|
||
Via Composer | ||
|
||
``` bash | ||
$ composer require prateekkarki/laragen | ||
``` | ||
|
||
## Usage | ||
|
||
``` php | ||
$skeleton = new Prateekkarki\Laragen(); | ||
echo $skeleton->echoPhrase('Hello, League!'); | ||
``` | ||
|
||
## Security | ||
|
||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. | ||
|
||
## Credits | ||
|
||
- [Prateek Karki][http://prateekkarki.com.np] | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. | ||
|
||
[ico-version]: https://img.shields.io/packagist/v/prateekkarki/laragen.svg?style=flat-square | ||
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square | ||
[ico-travis]: https://img.shields.io/travis/prateekkarki/laragen/master.svg?style=flat-square | ||
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/prateekkarki/laragen.svg?style=flat-square | ||
[ico-code-quality]: https://img.shields.io/scrutinizer/g/prateekkarki/laragen.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/prateekkarki/laragen.svg?style=flat-square | ||
|
||
[link-packagist]: https://packagist.org/packages/prateekkarki/laragen | ||
[link-travis]: https://travis-ci.org/prateekkarki/laragen | ||
[link-scrutinizer]: https://scrutinizer-ci.com/g/prateekkarki/laragen/code-structure | ||
[link-code-quality]: https://scrutinizer-ci.com/g/prateekkarki/laragen | ||
[link-downloads]: https://packagist.org/packages/prateekkarki/laragen | ||
[link-author]: https://github.com/prateekkarki | ||
[link-contributors]: ../../contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "prateekkarki/laragen", | ||
"type": "library", | ||
"description": "Extended generators for laravel", | ||
"keywords": [ | ||
"prateekkarki", | ||
"laragen" | ||
], | ||
"homepage": "https://github.com/prateekkarki/laragen", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Prateek Karki", | ||
"email": "[email protected]", | ||
"homepage": "http://prateekkarki.com.np", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php" : "~5.6|~7.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit" : ">=5.4.3", | ||
"squizlabs/php_codesniffer": "^3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Prateekkarki\\Laragen\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Prateekkarki\\Laragen\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "phpunit", | ||
"check-style": "phpcs src tests", | ||
"fix-style": "phpcbf src tests" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0-dev" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Prateekkarki\Laragen; | ||
|
||
class SkeletonClass | ||
{ | ||
/** | ||
* Create a new Skeleton Instance | ||
*/ | ||
public function __construct() | ||
{ | ||
// constructor body | ||
} | ||
|
||
/** | ||
* Friendly welcome | ||
* | ||
* @param string $phrase Phrase to return | ||
* | ||
* @return string Returns the phrase passed in | ||
*/ | ||
public function echoPhrase($phrase) | ||
{ | ||
return $phrase; | ||
} | ||
} |