Skip to content

Commit 8cdf412

Browse files
Initial commit
0 parents  commit 8cdf412

18 files changed

+757
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
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

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
composer.phar
3+
composer.lock
4+
.DS_Store

.travis.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
language: php
2+
3+
php:
4+
- 7.2
5+
- nightly
6+
7+
cache:
8+
directories:
9+
- $HOME/.composer/cache
10+
11+
env:
12+
matrix:
13+
- LARAVEL_VERSION="5.6.*" COMPOSER_FLAGS="--prefer-lowest"
14+
- LARAVEL_VERSION="5.6.*" COMPOSER_FLAGS="--prefer-stable"
15+
- LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-lowest" MINIMUM_STABILITY="dev"
16+
- LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-stable" MINIMUM_STABILITY="dev"
17+
18+
matrix:
19+
allow_failures:
20+
- php: nightly
21+
- env: LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-lowest" MINIMUM_STABILITY="dev"
22+
- env: LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-stable" MINIMUM_STABILITY="dev"
23+
fast_finish: true
24+
25+
before_install:
26+
- travis_retry composer self-update
27+
- if [[ -n ${MINIMUM_STABILITY} ]]; then composer config minimum-stability ${MINIMUM_STABILITY}; echo "Minimum stability set to ${MINIMUM_STABILITY}"; else echo "Minimum stability left unchanged"; fi
28+
- if [[ -n ${ORCHESTRA_VERSION} ]]; then composer require orchestra/testbench=${ORCHESTRA_VERSION} --dev --no-update; else echo "orchestra/testbench version requirement left unchanged"; fi
29+
- composer require laravel/framework=${LARAVEL_VERSION} --no-update
30+
31+
install:
32+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
33+
34+
script:
35+
- vendor/bin/phpunit
36+
37+
branches:
38+
only:
39+
- master
40+
- develop
41+
42+
notifications:
43+
email:
44+
on_failure: change
45+
on_success: never

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Changelog
2+
3+
All Notable changes to `sebastiaanluca/laravel-boolean-dates` will be documented in this file.
4+
5+
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
6+
7+
## Unreleased
8+
9+
## 0.2.0 (2018-07-26)
10+
11+
### Added
12+
13+
- Added a base Eloquent model
14+
- Added a queueable job
15+
- Added auto-discovery
16+
- Added a test suite and tests
17+
- Updated documents
18+
- Added boolean date parsing in base model
19+
- Add Laravel 5.6 service provider bindings and singletons properties
20+
- Alias all predefined class aliases
21+
- Map polymorphic models to their alias
22+
- Auto-register event listeners and subscribers
23+
- Added a call to a request handler's _before_ method
24+
25+
### Changed
26+
27+
- Require PHP 7.2 or higher
28+
- Require Laravel 5.6 or higher
29+
30+
### Removed
31+
32+
- Removed empty `mapRoutes` method
33+
- Removed empty `registerCommands` method
34+
- Removed empty `bindRepositories` method
35+
- Removed empty `mapMorphTypes` method
36+
- Removed empty `bootMiddleware` method
37+
- Extracted `BooleanDates` class to its own package
38+
39+
### Fixed
40+
41+
- Correctly resolve config file

CODE_OF_CONDUCT.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Code of Conduct
2+
3+
It's simple, really:
4+
5+
- Everyone is welcome to contribute
6+
- Use common sense at all times
7+
- Be open to other opinions and constructive criticism
8+
- Be friendly
9+
10+
Feel like someone's in violation of this? [Contact me directly][link-author-email].
11+
12+
[link-author-email]: mailto:hello@sebastiaanluca.com

CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contributing
2+
3+
Contributions are very welcome and will be fully credited.
4+
5+
We accept contributions via pull requests.
6+
7+
## Pull request guidelines
8+
9+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - Don't go crazy with the formatting.
10+
11+
- **Add tests** - Your patch won't be accepted if it doesn't have tests. Don't worry though! Feel free to submit a PR without, we'll help you along the way.
12+
13+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
14+
15+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
16+
17+
- **Create feature branches** - Don't ask us to pull from your master branch unless it only contains the PR code.
18+
19+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
20+
21+
- **Send coherent history** - Make sure each commit in your pull request is somewhat meaningful and contains related changes. Don't go overboard by changing a dozen files and doing everything in a single commit.

ISSUE_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Description
2+
3+
Make it clear if the issue is a **bug**, an **enhancement** or just a **question**. The easiest way to indicate this is to prefix the title, e.g. `[Question] I have a question`.
4+
5+
Provide a detailed description of the change or addition you are proposing. Include some screenshots or code examples if possible.
6+
7+
### Your environment
8+
9+
If you're reporting a bug or asking a specific question, include as many relevant details about your environment so we can reproduce it. The more, the better.
10+
11+
- Package version or last commit
12+
- Operating system and version
13+
- PHP version
14+
- Laravel version
15+
- Related package versions
16+
-
17+
18+
## Context
19+
20+
Why is this change important to you? How would you use it? How can it benefit other users?
21+
22+
## Possible implementation
23+
24+
Not obligatory, but suggest an idea for implementing addition or change.

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The MIT License (MIT)
2+
3+
Copyright (c) 2017 Sebastiaan Luca <hello@sebastiaanluca.com>
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.

PULL_REQUEST_TEMPLATE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## PR Type
2+
3+
What kind of pull request is this? Put an `x` in all the boxes that apply:
4+
5+
- [ ] Bug fix (non-breaking change which fixes an issue)
6+
- [ ] New feature (non-breaking change which adds functionality)
7+
- [ ] Extend feature (non-breaking change which extends existing functionality)
8+
- [ ] Change feature (non-breaking change which either changes or refactors existing functionality)
9+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
10+
11+
## What does it change?
12+
13+
Describe your changes in detail.
14+
15+
## Why this PR?
16+
17+
Why is this change required? What problem does it solve?
18+
19+
## How has this been tested?
20+
21+
Please describe in detail how you tested your changes (or are planning on testing them).
22+
23+
## Checklist
24+
25+
To facilitate merging your change and the approval of this PR, please make sure you've reviewed and applied the following:
26+
27+
- This PR addresses exactly one issue
28+
- All changes were made in a fork of this project (preferably also in a separate branch)
29+
- It follows the code style of this project
30+
- Tests were added to cover the changes
31+
- All previously existing tests still pass
32+
- If the change to the code requires a change to the documentation, it has been updated accordingly
33+
34+
If you're unsure about any of these, don't hesitate to ask. We're here to help!

0 commit comments

Comments
 (0)