Skip to content

Commit 2f576f8

Browse files
committed
first commit
0 parents  commit 2f576f8

9 files changed

+652
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
3+
All Notable changes to `Dick CRUD` will be documented in this file
4+
5+
## NEXT - YYYY-MM-DD
6+
7+
### Added
8+
- Nothing
9+
10+
### Deprecated
11+
- Nothing
12+
13+
### Fixed
14+
- Nothing
15+
16+
### Removed
17+
- Nothing
18+
19+
### Security
20+
- Nothing

CONTRIBUTING.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via Pull Requests on [Github](https://github.com/tabacitu/crud).
6+
7+
8+
## Pull Requests
9+
10+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
11+
12+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
13+
14+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
15+
16+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
17+
18+
- **Create feature branches** - Don't ask us to pull from your master branch.
19+
20+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
21+
22+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
23+
24+
25+
## Running Tests
26+
27+
``` bash
28+
$ composer test
29+
```
30+
31+
32+
**Happy coding**!

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The MIT License (MIT)
2+
3+
Copyright (c) 2015 :author_name <:author_email>
4+
5+
> Permission is hereby granted, free of charge, to any person obtaining a copy
6+
> of this software and associated documentation files (the "Software"), to deal
7+
> in the Software without restriction, including without limitation the rights
8+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
> copies of the Software, and to permit persons to whom the Software is
10+
> furnished to do so, subject to the following conditions:
11+
>
12+
> The above copyright notice and this permission notice shall be included in
13+
> all copies or substantial portions of the Software.
14+
>
15+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
> THE SOFTWARE.

README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# crud
2+
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/tabacitu/crud.svg?style=flat-square)](https://packagist.org/packages/tabacitu/crud)
4+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
5+
[![Build Status](https://img.shields.io/travis/tabacitu/crud/master.svg?style=flat-square)](https://travis-ci.org/tabacitu/crud)
6+
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/tabacitu/crud.svg?style=flat-square)](https://scrutinizer-ci.com/g/tabacitu/crud/code-structure)
7+
[![Quality Score](https://img.shields.io/scrutinizer/g/tabacitu/crud.svg?style=flat-square)](https://scrutinizer-ci.com/g/tabacitu/crud)
8+
[![Total Downloads](https://img.shields.io/packagist/dt/tabacitu/crud.svg?style=flat-square)](https://packagist.org/packages/tabacitu/crud)
9+
10+
Quickly build an admin interface for your Eloquent models, using Laravel 5. Build a complete CMS at 10 minutes/model, max.
11+
12+
## Install
13+
14+
Via Composer
15+
16+
``` bash
17+
$ composer require tabacitu/crud
18+
```
19+
20+
## Usage
21+
22+
``` php
23+
24+
// TODO
25+
26+
```
27+
28+
## Change log
29+
30+
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
31+
32+
## Testing
33+
34+
``` bash
35+
$ composer test
36+
```
37+
38+
## Contributing
39+
40+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
41+
42+
## Security
43+
44+
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
45+
46+
## Credits
47+
48+
- [Cristian Tabacitu][http://tabacitu.ro]
49+
- [All Contributors][link-contributors]
50+
51+
## License
52+
53+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
54+
55+
[ico-version]: https://img.shields.io/packagist/v/league/crud.svg?style=flat-square
56+
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
57+
[ico-travis]: https://img.shields.io/travis/tabacitu/crud/master.svg?style=flat-square
58+
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/tabacitu/crud.svg?style=flat-square
59+
[ico-code-quality]: https://img.shields.io/scrutinizer/g/tabacitu/crud.svg?style=flat-square
60+
[ico-downloads]: https://img.shields.io/packagist/dt/league/crud.svg?style=flat-square
61+
62+
[link-packagist]: https://packagist.org/packages/league/crud
63+
[link-travis]: https://travis-ci.org/tabacitu/crud
64+
[link-scrutinizer]: https://scrutinizer-ci.com/g/tabacitu/crud/code-structure
65+
[link-code-quality]: https://scrutinizer-ci.com/g/tabacitu/crud
66+
[link-downloads]: https://packagist.org/packages/league/crud
67+
[link-author]: https://github.com/tabacitu
68+
[link-contributors]: ../../contributors

composer.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "Dick/CRUD",
3+
"description": "Quickly build an admin interface for your Eloquent models, using Laravel 5. Build a CMS in a matter of minutes.",
4+
"keywords": [
5+
"CRUD",
6+
"create",
7+
"update",
8+
"delete",
9+
"read",
10+
"admin panel",
11+
"admin interface",
12+
"CMS"
13+
],
14+
"homepage": "https://github.com/tabacitu/CRUD",
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Cristian tabacitu",
19+
"email": "[email protected]",
20+
"homepage": "www.tabacitu.ro",
21+
"role": "Dick Master"
22+
}
23+
],
24+
"require": {
25+
"illuminate/support": "~5.1",
26+
"php" : ">=5.3.0",
27+
"prologue/alerts": "dev-master",
28+
"zizaco/entrust": "dev-laravel-5"
29+
},
30+
"require-dev": {
31+
"phpunit/phpunit" : "4.*",
32+
"scrutinizer/ocular": "~1.1"
33+
},
34+
"autoload": {
35+
"psr-4": {
36+
"Dick\\CRUD\\": "src"
37+
}
38+
},
39+
"autoload-dev": {
40+
"psr-4": {
41+
"Dick\\CRUD\\Test\\": "tests"
42+
}
43+
},
44+
"scripts": {
45+
"test": "phpunit"
46+
},
47+
"extra": {
48+
"branch-alias": {
49+
"dev-master": "1.0-dev"
50+
}
51+
}
52+
}

src/CRUDServiceProvider.php

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
namespace Dick\CRUD;
3+
4+
use Illuminate\Support\ServiceProvider;
5+
use Illuminate\Routing\Router;
6+
7+
class CRUDServiceProvider extends ServiceProvider
8+
{
9+
/**
10+
* Indicates if loading of the provider is deferred.
11+
*
12+
* @var bool
13+
*/
14+
protected $defer = false;
15+
/**
16+
* Perform post-registration booting of services.
17+
*
18+
* @return void
19+
*/
20+
public function boot()
21+
{
22+
// use this if your package has views
23+
$this->loadViewsFrom(realpath(__DIR__.'/resources/views'), 'CRUD');
24+
25+
// use this if your package has routes
26+
// $this->setupRoutes($this->app->router);
27+
28+
// use this if your package needs a config file
29+
// $this->publishes([
30+
// __DIR__.'/config/config.php' => config_path('CRUD.php'),
31+
// ]);
32+
33+
// use the vendor configuration file as fallback
34+
// $this->mergeConfigFrom(
35+
// __DIR__.'/config/config.php', 'CRUD'
36+
// );
37+
}
38+
/**
39+
* Define the routes for the application.
40+
*
41+
* @param \Illuminate\Routing\Router $router
42+
* @return void
43+
*/
44+
public function setupRoutes(Router $router)
45+
{
46+
$router->group(['namespace' => 'Dick\CRUD\Http\Controllers'], function($router)
47+
{
48+
require __DIR__.'/Http/routes.php';
49+
});
50+
}
51+
/**
52+
* Register any package services.
53+
*
54+
* @return void
55+
*/
56+
public function register()
57+
{
58+
$this->registerCRUD();
59+
60+
// use this if your package has a config file
61+
// config([
62+
// 'config/CRUD.php',
63+
// ]);
64+
}
65+
private function registerCRUD()
66+
{
67+
$this->app->bind('CRUD',function($app){
68+
return new CRUD($app);
69+
});
70+
}
71+
72+
}

0 commit comments

Comments
 (0)