Skip to content

Commit 4bf94a0

Browse files
committed
Initial commit.
0 parents  commit 4bf94a0

24 files changed

+1416
-0
lines changed

Diff for: .editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2

Diff for: .gitattributes

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto
2+
3+
/tests export-ignore
4+
.github/ export-ignore
5+
.editorconfig export-ignore
6+
.gitattributes export-ignore
7+
.gitignore export-ignore
8+
.php_cs export-ignore
9+
.scrutinizer.yml export-ignore
10+
.travis.yml export-ignore
11+
phpunit.xml export-ignore

Diff for: .github/CONTRIBUTING.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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/yajra/laravel-datatables-html).
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+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
13+
14+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
15+
16+
- **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 before submitting.
17+
18+
19+
**Happy coding**!

Diff for: .github/ISSUE_TEMPLATE.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
### Summary of problem or feature request
3+
4+
<!-- Please describe your problem/feature request here. -->
5+
6+
7+
### Code snippet of problem
8+
9+
<!--
10+
If applicable, please include a copy of your code
11+
which triggers the suspected bug.
12+
13+
You may use the markdown php code tags to format your paste:
14+
15+
```php
16+
$params = ['foo'];
17+
```
18+
-->
19+
20+
### System details
21+
22+
<!--
23+
Please include these details about your system!
24+
If they are omitted, the ticket will be deprioritized
25+
over other users requests/tickets.
26+
-->
27+
28+
- Operating System
29+
- PHP Version
30+
- Laravel Version
31+
- Laravel-Datatables Version

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--
2+
3+
Thanks for the Pull Request! Before you submit the PR, please
4+
look over this checklist:
5+
6+
- Have you read the [Contributing Guidelines](https://github.com/yajra/laravel-datatables-html/blob/master/.github/CONTRIBUTING.md)?
7+
8+
If you answered yes, thanks for the PR and we'll get to it ASAP! :)
9+
10+
-->

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
/coverage
3+
composer.phar
4+
composer.lock

Diff for: .php_cs

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
3+
use Symfony\CS\Config\Config;
4+
use Symfony\CS\FixerInterface;
5+
use Symfony\CS\Finder\DefaultFinder;
6+
7+
$fixers = [
8+
'blankline_after_open_tag',
9+
'braces',
10+
'concat_without_spaces',
11+
'double_arrow_multiline_whitespaces',
12+
'duplicate_semicolon',
13+
'elseif',
14+
'empty_return',
15+
'encoding',
16+
'eof_ending',
17+
'extra_empty_lines',
18+
'function_call_space',
19+
'function_declaration',
20+
'include',
21+
'indentation',
22+
'join_function',
23+
'line_after_namespace',
24+
'linefeed',
25+
'list_commas',
26+
'logical_not_operators_with_successor_space',
27+
'lowercase_constants',
28+
'lowercase_keywords',
29+
'method_argument_space',
30+
'multiline_array_trailing_comma',
31+
'multiline_spaces_before_semicolon',
32+
'multiple_use',
33+
'namespace_no_leading_whitespace',
34+
'no_blank_lines_after_class_opening',
35+
'no_empty_lines_after_phpdocs',
36+
'object_operator',
37+
'operators_spaces',
38+
'parenthesis',
39+
'phpdoc_indent',
40+
'phpdoc_inline_tag',
41+
'phpdoc_no_access',
42+
'phpdoc_no_package',
43+
'phpdoc_scalar',
44+
'phpdoc_short_description',
45+
'phpdoc_to_comment',
46+
'phpdoc_trim',
47+
'phpdoc_type_to_var',
48+
'phpdoc_var_without_name',
49+
'remove_leading_slash_use',
50+
'remove_lines_between_uses',
51+
'return',
52+
'self_accessor',
53+
'short_array_syntax',
54+
'short_echo_tag',
55+
'short_tag',
56+
'single_array_no_trailing_comma',
57+
'single_blank_line_before_namespace',
58+
'single_line_after_imports',
59+
'single_quote',
60+
'spaces_before_semicolon',
61+
'spaces_cast',
62+
'standardize_not_equal',
63+
'ternary_spaces',
64+
'trailing_spaces',
65+
'trim_array_spaces',
66+
'unalign_equals',
67+
'unary_operators_spaces',
68+
'unused_use',
69+
'visibility',
70+
'whitespacy_lines',
71+
];
72+
73+
return Config::create()
74+
->finder(DefaultFinder::create()->in(__DIR__))
75+
->fixers($fixers)
76+
->level(FixerInterface::NONE_LEVEL)
77+
->setUsingCache(true);

Diff for: .scrutinizer.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tools:
2+
php_sim: true
3+
php_pdepend: true
4+
php_analyzer: true
5+
# external_code_coverage: true
6+
filter:
7+
excluded_paths:
8+
- 'tests/*'
9+
- 'vendor/*'
10+
- '.github/*'

Diff for: .travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- 5.5.9
5+
- 5.6
6+
- 7.0
7+
- hhvm
8+
9+
matrix:
10+
allow_failures:
11+
- php: hhvm
12+
13+
env:
14+
global:
15+
- setup=basic
16+
17+
sudo: false
18+
19+
install:
20+
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
21+
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
22+
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi
23+
24+
script: vendor/bin/phpunit

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Datatables Package for Laravel 4|5
2+
3+
[![Latest Stable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/stable.png)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
4+
[![Total Downloads](https://poser.pugx.org/yajra/laravel-datatables-oracle/downloads.png)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
5+
[![Build Status](https://travis-ci.org/yajra/laravel-datatables.png?branch=master)](https://travis-ci.org/yajra/laravel-datatables)
6+
[![Latest Unstable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/unstable.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
7+
[![License](https://poser.pugx.org/yajra/laravel-datatables-oracle/license.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
8+
9+
##Change Log
10+
11+
### v7.0.0 - TBA

Diff for: CONDUCT.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
* Other unethical or unprofessional conduct.
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17+
18+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.
19+
20+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

Diff for: LICENSE.md

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

Diff for: README.md

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# jQuery DataTables API for Laravel 4|5
2+
3+
[![Join the chat at https://gitter.im/yajra/laravel-datatables](https://badges.gitter.im/yajra/laravel-datatables.svg)](https://gitter.im/yajra/laravel-datatables?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
5+
[![Laravel 4.2|5.x](https://img.shields.io/badge/Laravel-4.2|5.x-orange.svg)](http://laravel.com)
6+
[![Latest Stable Version](https://img.shields.io/packagist/v/yajra/laravel-datatables-oracle.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
7+
[![Build Status](https://travis-ci.org/yajra/laravel-datatables.svg?branch=master)](https://travis-ci.org/yajra/laravel-datatables)
8+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yajra/laravel-datatables/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yajra/laravel-datatables/?branch=master)
9+
[![Total Downloads](https://img.shields.io/packagist/dt/yajra/laravel-datatables-oracle.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
10+
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
11+
12+
This package is created to handle [server-side](https://www.datatables.net/manual/server-side) works of [DataTables](http://datatables.net) jQuery Plugin via [AJAX option](https://datatables.net/reference/option/ajax) by using Eloquent ORM, Fluent Query Builder or Collection.
13+
14+
```php
15+
use Yajra\Datatables\Facades\Datatables;
16+
17+
// Using Eloquent
18+
return Datatables::eloquent(User::query())->make(true);
19+
20+
// Using Query Builder
21+
return Datatables::queryBuilder(DB::table('users'))->make(true);
22+
23+
// Using Collection
24+
return Datatables::collection(User::all())->make(true);
25+
26+
// Using the Engine Factory
27+
return Datatables::of(User::query())->make(true);
28+
return Datatables::of(DB::table('users'))->make(true);
29+
return Datatables::of(User::all())->make(true);
30+
```
31+
32+
## Requirements
33+
- [PHP >=5.5.9](http://php.net/)
34+
- [Laravel 5.x](https://github.com/laravel/framework)
35+
- [jQuery DataTables v1.10.x](http://datatables.net/)
36+
37+
## Documentations
38+
- [Laravel Datatables Documentation](http://datatables.yajrabox.com/docs/laravel-datatables)
39+
- [Laravel Datatables API](http://yajra.github.io/laravel-datatables/api/)
40+
- [Demo Application](http://datatables.yajrabox.com) is available for artisan's reference.
41+
42+
## Quick Installation
43+
`composer require yajra/laravel-datatables-oracle:dev-master`
44+
45+
#### Service Provider
46+
`Yajra\Datatables\DatatablesServiceProvider::class`
47+
48+
#### Facade
49+
`Datatables` facade is automatically registered as an alias for `Yajra\Datatables\Facades\Datatables` class.
50+
51+
#### Configuration and Assets
52+
`$ php artisan vendor:publish --tag=datatables`
53+
54+
And that's it! Start building out some awesome DataTables!
55+
56+
## Debugging Mode
57+
To enable debugging mode, just set `APP_DEBUG=true` and the package will include the queries and inputs used when processing the table.
58+
59+
**IMPORTANT:** Please make sure that APP_DEBUG is set to false when your app is on production.
60+
61+
## Contributing
62+
63+
Please see [CONTRIBUTING](https://github.com/yajra/laravel-datatables/blob/master/.github/CONTRIBUTING.md) for details.
64+
65+
## Security
66+
67+
If you discover any security related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker.
68+
69+
## Credits
70+
71+
- [Arjay Angeles](https://github.com/yajra)
72+
- [bllim/laravel4-datatables-package](https://github.com/bllim/laravel4-datatables-package)
73+
- [All Contributors](https://github.com/yajra/laravel-datatables/graphs/contributors)
74+
75+
## License
76+
77+
The MIT License (MIT). Please see [License File](https://github.com/yajra/laravel-datatables/blob/master/LICENSE.md) for more information.
78+
79+
## Buy me a coffee
80+
- <a href='https://pledgie.com/campaigns/29515'><img alt='Click here to lend your support to: Laravel Datatables and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/29515.png?skin_name=chrome' border='0' ></a>
81+
- <a href='https://www.patreon.com/bePatron?u=4521203'><img alt='Become a Patron' src='https://s3.amazonaws.com/patreon_public_assets/toolbox/patreon.png' border='0' width='200px' ></a>

Diff for: UPGRADE.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Upgrading from v6.x to v7.x
2+
- composer require yajra/laravel-datatables-oracle
3+
- composer require yajra/laravel-datatables-buttons
4+
- php artisan vendor:publish --tag=datatables --force
5+
- php artisan vendor:publish --tag=datatables-buttons --force
6+
7+
## Upgrading from v5.x to v6.x
8+
- Change all occurrences of `yajra\Datatables` to `Yajra\Datatables`. (Use Sublime's find and replace all for faster update).
9+
- Remove `Datatables` facade registration.
10+
- Temporarily comment out `Yajra\Datatables\DatatablesServiceProvider`.
11+
- Update package version on your composer.json and use `yajra/laravel-datatables-oracle: ~6.0`
12+
- Uncomment the provider `Yajra\Datatables\DatatablesServiceProvider`.

0 commit comments

Comments
 (0)