Skip to content

Commit 501781d

Browse files
committed
First Blood!
1 parent c1d09ec commit 501781d

16 files changed

+2434
-0
lines changed

.editorconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# ------------------------------------------- #
2+
# More information at http://editorconfig.org #
3+
# ------------------------------------------- #
4+
5+
6+
# Top-most EditorConfig file
7+
root = true
8+
9+
10+
# Apply To All
11+
[*]
12+
charset = utf-8
13+
end_of_line = lf
14+
indent_style = space
15+
indent_size = 4
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
max_line_length = 120
19+
20+
21+
[*.md]
22+
trim_trailing_whitespace = false
23+
24+
25+
[Makefile]
26+
indent_style = tab
27+
28+
29+
[*.{json}]
30+
indent_style = space
31+
indent_size = 4
32+
33+
[*.{yml,yaml}]
34+
indent_style = space
35+
indent_size = 4
36+
37+
# Matches the exact files: composer.json
38+
[{composer.json}]
39+
indent_style = space
40+
indent_size = 4

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/tests export-ignore
2+
/README.md export-ignore
3+
/.gitattributes export-ignore
4+
/.gitignore export-ignore
5+
/.travis.yml export-ignore
6+
/phpunit.xml.dist export-ignore
7+
/phpcs.xml.dist export-ignore

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# --------------------------------------------
2+
# Composer & Vendor Directory.
3+
# --------------------------------------------
4+
composer.phar
5+
/vendor
6+
/composer.lock
7+
8+
9+
# --------------------------------------------
10+
# PHPUnit & Config.
11+
# --------------------------------------------
12+
phpunit.phar
13+
/phpunit.xml
14+
.phpunit.result.cache
15+
/build
16+
17+
18+
# --------------------------------------------
19+
# Local PHP Code Sniffer Config.
20+
# --------------------------------------------
21+
/phpcs.xml
22+
23+
24+
# --------------------------------------------
25+
# IDE Files.
26+
# --------------------------------------------
27+
# PhpStorm.
28+
.idea
29+
30+
# NetBeans.
31+
nbproject
32+
33+
# Zend Studio
34+
.buildpath
35+
.project
36+
.settings
37+
38+
39+
# --------------------------------------------
40+
# OS files.
41+
# --------------------------------------------
42+
Thumbs.db
43+
.DS_Store

.scrutinizer.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
imports:
2+
- php
3+
4+
tools:
5+
external_code_coverage:
6+
timeout: 2100 # Timeout in seconds.
7+
8+
# disable copy paste detector and similarity analyzer as they have no real value
9+
# and a huge bunch of false-positives
10+
php_sim: false
11+
php_cpd: false

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: php
2+
3+
os:
4+
- linux
5+
6+
matrix:
7+
allow_failures:
8+
- php: hhvm
9+
10+
include:
11+
- php: 5.5
12+
- php: 5.6
13+
- php: 7.0
14+
- php: 7.1
15+
- php: 7.2
16+
- php: 7.3
17+
- php: hhvm
18+
19+
before_script:
20+
- php --version
21+
- travis_retry composer self-update
22+
- travis_retry composer install --no-interaction --prefer-source
23+
24+
script:
25+
- php vendor/bin/phpcs
26+
- php vendor/bin/phpunit --debug
27+
28+
after_script:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DotArray Change Log
2+
=====================
3+
4+
1.0.0 December 24, 2018
5+
-----------------------------
6+
7+
- Initial release.

code-of-conduct.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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 [INSERT EMAIL ADDRESS]. 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
77+

composer.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"name": "binary-cube/dot-array",
3+
"description": "Navigate through array using JSON Dot path.",
4+
5+
"keywords": [
6+
"DotArray", "dot-array", "array", "dot", "php-array", "php-array-json-path"
7+
],
8+
9+
"type": "library",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Banciu N. Cristian Mihai",
14+
"role": "Developer",
15+
"homepage": "https://binary-cube.com"
16+
}
17+
],
18+
"support": {
19+
"source": "https://github.com/binary-cube/dot-array",
20+
"issues": "https://github.com/binary-cube/dot-array/issues?state=open"
21+
},
22+
23+
"minimum-stability": "stable",
24+
"prefer-stable": true,
25+
26+
"require": {
27+
"php": ">=5.5",
28+
"ext-json": "*",
29+
"ext-mbstring": "*"
30+
},
31+
32+
"require-dev": {
33+
"squizlabs/php_codesniffer": "3.*",
34+
"phpunit/phpunit": "*"
35+
},
36+
37+
"suggest": {
38+
},
39+
40+
"config": {
41+
"sort-packages": true,
42+
"optimize-autoloader": true
43+
},
44+
45+
"bin": [
46+
],
47+
48+
"scripts": {
49+
},
50+
51+
"autoload": {
52+
"psr-4": {
53+
"BinaryCube\\DotArray\\": "src"
54+
}
55+
},
56+
57+
"autoload-dev": {
58+
"psr-4": {
59+
"BinaryCube\\DotArray\\Tests\\": "tests"
60+
}
61+
},
62+
63+
"repositories": [
64+
{
65+
"type": "composer",
66+
"url": "https://asset-packagist.org"
67+
}
68+
]
69+
}

0 commit comments

Comments
 (0)