Skip to content

Commit 641ccb0

Browse files
committed
Initial Commit
0 parents  commit 641ccb0

File tree

12 files changed

+272
-0
lines changed

12 files changed

+272
-0
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_size = 4
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.json]
11+
indent_size = 4
12+
13+
[*.neon]
14+
indent_style = tab
15+
16+
[*.{yaml,yml}]
17+
indent_size = 4
18+
19+
[Makefile]
20+
indent_style = tab

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/.github/ export-ignore
2+
/.phive/ export-ignore
3+
/test/ export-ignore
4+
/.editorconfig export-ignore
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.php_cs export-ignore
8+
/composer-require-checker.json export-ignore
9+
/infection.json export-ignore
10+
/Makefile export-ignore
11+
/phpstan-baseline.neon export-ignore
12+
/phpstan.neon export-ignore
13+
/psalm-baseline.xml export-ignore
14+
/psalm.xml export-ignore

.github/CODEOWNERS

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

.github/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](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](https://www.contributor-covenant.org/faq)

.gitignore

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

.php_cs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of SolidWorx/Apify project.
7+
* Copyright (c) Pierre du Plessis <[email protected]>
8+
*
9+
* For the full copyright and license information, please view
10+
* the LICENSE.md file that was distributed with this source code.
11+
*/
12+
13+
$header = <<<'EOF'
14+
This file is part of SolidWorx/Apify project.
15+
16+
Copyright (c) Pierre du Plessis <[email protected]>
17+
18+
This source file is subject to the MIT license that is bundled
19+
with this source code in the file LICENSE.
20+
EOF;
21+
22+
$finder = PhpCsFixer\Finder::create()
23+
->in(['src', 'tests']);
24+
25+
return PhpCsFixer\Config::create()
26+
->setRules(
27+
[
28+
'@PSR1' => true,
29+
'@PSR2' => true,
30+
'@Symfony' => true,
31+
'array_syntax' => array('syntax' => 'short'),
32+
'phpdoc_no_package' => true,
33+
'phpdoc_summary' => false,
34+
'declare_strict_types' => true,
35+
'strict_param' => true,
36+
'header_comment' => [
37+
'comment_type' => 'comment',
38+
'header' => \trim($header),
39+
'location' => 'after_declare_strict',
40+
'separate' => 'both',
41+
],
42+
]
43+
)
44+
->setFinder($finder)
45+
->setRiskyAllowed(true)
46+
;

composer.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "solidworx/apify",
3+
"type": "library",
4+
"description": "Provides a fluent interface for HTTP requests",
5+
"keywords": [
6+
"http",
7+
"http-client"
8+
],
9+
"homepage": "https://github.com/SolidWorx/Apify",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Pierre du Plessis",
14+
"email": "[email protected]"
15+
}
16+
],
17+
"require": {
18+
"php": ">= 7.2"
19+
},
20+
"require-dev": {
21+
"symfony/http-client": "^4.4 || ^5.0",
22+
"infection/infection": "~0.20.2",
23+
"phpstan/extension-installer": "^1.1.0",
24+
"phpstan/phpstan": "~0.12.69",
25+
"phpstan/phpstan-deprecation-rules": "~0.12.6",
26+
"phpstan/phpstan-phpunit": "~0.12.17",
27+
"phpstan/phpstan-strict-rules": "~0.12.9",
28+
"phpunit/phpunit": "^8.5",
29+
"psalm/plugin-phpunit": "~0.15.1",
30+
"vimeo/psalm": "^4.4.1"
31+
},
32+
"config": {
33+
"preferred-install": "dist",
34+
"sort-packages": true
35+
},
36+
"extra": {
37+
"composer-normalize": {
38+
"indent-size": 4,
39+
"indent-style": "space"
40+
}
41+
},
42+
"autoload": {
43+
"psr-4": {
44+
"SolidWorx\\ApiFy\\": "src"
45+
}
46+
},
47+
"autoload-dev": {
48+
"psr-4": {
49+
"SolidWorx\\ApiFy\\Tests\\": "tests"
50+
}
51+
},
52+
"support": {
53+
"issues": "https://github.com/SolidWorx/Apify/issues",
54+
"source": "https://github.com/SolidWorx/Apify"
55+
}
56+
}

infection.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"logs": {
3+
"text": "build/infection-log.txt"
4+
},
5+
"minCoveredMsi": 100,
6+
"minMsi": 100,
7+
"phpUnit": {
8+
"configDir": "tests"
9+
},
10+
"source": {
11+
"directories": [
12+
"src"
13+
]
14+
},
15+
"timeout": 10
16+
}

phpstan-baseline.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
ignoreErrors: []

phpstan.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
4+
parameters:
5+
inferPrivatePropertyTypeFromConstructor: true
6+
7+
level: max
8+
9+
paths:
10+
- src/
11+
- test/
12+
13+
tmpDir: .build/phpstan/

0 commit comments

Comments
 (0)