Skip to content

Commit 1b256e7

Browse files
Merge pull request #1 from composer-unused/initial-pr
Initial commit
2 parents d5c2eea + c2b4825 commit 1b256e7

12 files changed

+185
-6
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
custom:
2+
- "https://paypal.me/icanhazstring"
3+
github: "icanhazstring"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### All Submissions:
2+
3+
* [ ] Have you followed the guidelines in our [Contributing document](https://github.com/composer-unused/composer-unused/blob/main/CONTRIBUTING.md)?
4+
* [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/icanhazstring/composer-unused/pulls) for the same update/change?
5+
6+
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
7+
8+
### New Feature Submissions:
9+
10+
1. [ ] Does your submission pass tests?
11+
2. [ ] Have you lint your code locally prior to submission?
12+
13+
### Changes to Core Features:
14+
15+
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
16+
* [ ] Have you written new tests for your core changes, as applicable?
17+
* [ ] Have you successfully ran tests with your changes locally?

.github/dependabot.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
5+
updates:
6+
- commit-message:
7+
include: "scope"
8+
prefix: "composer"
9+
directory: "/"
10+
labels:
11+
- "dependency"
12+
open-pull-requests-limit: 10
13+
package-ecosystem: "composer"
14+
schedule:
15+
interval: "daily"
16+
versioning-strategy: "increase"
17+
18+
- commit-message:
19+
include: "scope"
20+
prefix: "github-actions"
21+
directory: "/"
22+
labels:
23+
- "dependency"
24+
open-pull-requests-limit: 10
25+
package-ecosystem: "github-actions"
26+
schedule:
27+
interval: "daily"

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
composer.phar
21
/vendor/
3-
4-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
2+
composer.lock

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
## [Unreleased] - TBA
4+
### Added
5+
- Added `LinkInterface`
6+
- Added `PackageInterface`
7+
- Added `RepositoryInterface`
8+
### Changed
9+
### Removed

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at blubb0r05+github@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CONTRIBUTING
2+
3+
Thank you for considering contributing to this package!
4+
5+
## Steps to contribute
6+
7+
### Installation
8+
9+
1. Fork the repository
10+
2. `git clone yourname/contracts`
11+
5. Run `composer install`
12+
13+
### Submitting Changes
14+
15+
6. Make your changes
16+
8. Create your Pull-Request

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# contracts
1+
# composer-unused/contracts
22
Contract repository for composer-unused

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "composer-unused/contracts",
3+
"description": "Contract repository for composer-unused",
4+
"type": "library",
5+
"license": "MIT",
6+
"autoload": {
7+
"psr-4": {
8+
"ComposerUnused\\Contracts\\": "src/"
9+
}
10+
},
11+
"authors": [
12+
{
13+
"name": "Andreas Frömer",
14+
"email": "composer-unused@icanhazstring.com"
15+
}
16+
],
17+
"require": {
18+
"php": "^7.4 || ^8.0"
19+
}
20+
}

src/LinkInterface.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ComposerUnused\Contracts;
6+
7+
interface LinkInterface
8+
{
9+
public function getTarget(): string;
10+
}

0 commit comments

Comments
 (0)