Skip to content

Commit 923a159

Browse files
committed
Add project initials
0 parents  commit 923a159

File tree

13 files changed

+305
-0
lines changed

13 files changed

+305
-0
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage_clover: build/logs/clover-*.xml

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
composer.phar
2+
composer.lock
3+
/vendor/
4+
/.idea/
5+
/.phpunit.result.cache
6+
/build

.mergify.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pull_request_rules:
2+
- name: automatic merge for Dependabot pull requests
3+
conditions:
4+
- author~=^dependabot(|-preview)\[bot\]$
5+
- status-success=Travis CI - Pull Request
6+
actions:
7+
merge:
8+
method: squash

.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+
cache:
4+
directories:
5+
- $HOME/.composer/cache
6+
7+
matrix:
8+
include:
9+
# Latest dependencies with all PHP versions
10+
- php: 7.2
11+
- php: 7.2
12+
env: COMPOSER_UPDATE_FLAGS='--prefer-lowest --prefer-stable'
13+
- php: 7.3
14+
- php: 7.3
15+
env: COMPOSER_UPDATE_FLAGS='--prefer-lowest --prefer-stable'
16+
- php: 7.4
17+
- php: 7.4
18+
env: COMPOSER_UPDATE_FLAGS='--prefer-lowest --prefer-stable'
19+
20+
# Ignore the platform requirements for the upcoming PHP version
21+
- php: nightly
22+
env: COMPOSER_FLAGS='--ignore-platform-reqs'
23+
- php: nightly
24+
env:
25+
- COMPOSER_FLAGS='--ignore-platform-reqs'
26+
COMPOSER_UPDATE_FLAGS='--prefer-lowest --prefer-stable --ignore-platform-reqs'
27+
allow_failures:
28+
- php: nightly
29+
fast_finish: true
30+
31+
install:
32+
- curl -s http://getcomposer.org/installer | php
33+
- php composer.phar install --dev --no-interaction $COMPOSER_FLAGS
34+
- if [[ -n $COMPOSER_UPDATE_FLAGS ]]; then php composer.phar update $COMPOSER_UPDATE_FLAGS; fi
35+
36+
script:
37+
- mkdir -p build/logs;
38+
- composer unit-tests
39+
40+
after_success:
41+
- travis_retry php vendor/bin/php-coveralls
42+
43+
notifications:
44+
email:
45+

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Contributing to JsonMapper Eloquent Middleware
2+
3+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4+
5+
Since JsonMapper Eloquent Middleware currently only is a small project (though it has great ambitions) we welcome any contribution
6+
that helps us move forward. The project could use your help.
7+
8+
## Ideal pull request
9+
To avoid going back and forth the project `composer.json` was setup in such a way that it allows you to run
10+
the same checks we do. These checks are:
11+
```bash
12+
composer unit-tests # For running the unit tests
13+
composer phpcbf # For applying the correct code style (PSR-12) to the sources
14+
composer phpcs # For scanning the sources for the correct style (PSR-12) being used
15+
composer phpstan # For analysing the sources for potentional bugs
16+
```

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Danny van der Sluijs
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 all
13+
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 THE
21+
SOFTWARE.

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
![Logo](https://jsonmapper.net/images/jsonmapper.png)
2+
3+
---
4+
**This is a Laravel package for using JsonMapper in you Laravel application.**
5+
6+
JsonMapper is a PHP library that allows you to map a JSON response to your PHP objects that are either annotated using doc blocks or use typed properties.
7+
For more information see the project website: https://jsonmapper.net
8+
9+
![GitHub](https://img.shields.io/github/license/JsonMapper/LaravelPackage)
10+
![Packagist Version](https://img.shields.io/packagist/v/json-mapper/laravel-package)
11+
![PHP from Packagist](https://img.shields.io/packagist/php-v/json-mapper/laravel-package)
12+
[![Build Status](https://api.travis-ci.com/JsonMapper/LaravelPackage.svg?branch=master)](https://travis-ci.com/JsonMapper/LaravelPackage)
13+
[![Coverage Status](https://coveralls.io/repos/github/JsonMapper/LaravelPackage/badge.svg?branch=master)](https://coveralls.io/github/JsonMapper/LaravelPackage?branch=master)
14+
15+
# Why use JsonMapper
16+
Continuously mapping your JSON responses to your own objects becomes tedious and is error prone. Not mentioning the
17+
tests that needs to be written for said mapping.
18+
19+
JsonMapper has been build with the most common usages in mind. In order to allow for those edge cases which are not
20+
supported by default, it can easily be extended as its core has been designed using middleware.
21+
22+
JsonMapper supports the following features
23+
* Case conversion
24+
* Debugging
25+
* DocBlock annotations
26+
* Final callback
27+
* Namespace resolving
28+
* PHP 7.4 Types properties
29+
30+
# Installing JsonMapper laravel package
31+
The installation of JsonMapper Laravel package can easily be done with [Composer](https://getcomposer.org)
32+
```bash
33+
$ composer require json-mapper/laravel-package
34+
```
35+
The example shown above assumes that `composer` is on your `$PATH`.
36+
37+
# Contributing
38+
Please refer to [CONTRIBUTING.md](https://github.com/JsonMapper/LaravelPackage/blob/master/CONTRIBUTING.md) for information on how to contribute to JsonMapper Laravel package.
39+
40+
## List of Contributors
41+
Thanks to everyone who has contributed to JsonMapper Laravel package! You can find a detailed list of contributors of JsonMapper on [GitHub](https://github.com/JsonMapper/LaravelPackage/graphs/contributors).
42+
43+
# License
44+
The MIT License (MIT). Please see [License File](https://github.com/JsonMapper/LaravelPackage/blob/master/LICENSE) for more information.

Version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0

0 commit comments

Comments
 (0)