Skip to content

Commit c8db194

Browse files
committed
feat: bootstrap xobject-template mvp foundation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
0 parents  commit c8db194

92 files changed

Lines changed: 1767 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.docker/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SPDX-FileCopyrightText: 2026 LibreSign
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
FROM php:8.2-cli
5+
6+
ARG UID=1000
7+
ARG GID=1000
8+
9+
RUN apt-get update \
10+
&& apt-get install -y --no-install-recommends git unzip zip bash curl ca-certificates \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
RUN pecl install xdebug \
14+
&& docker-php-ext-enable xdebug
15+
16+
RUN groupadd -g ${GID} app || true \
17+
&& useradd -m -u ${UID} -g ${GID} -s /bin/bash app || true
18+
19+
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
20+
21+
WORKDIR /var/www/html
22+
USER app
23+
24+
CMD ["bash"]

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-FileCopyrightText: 2026 LibreSign
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
UID=1000
5+
GID=1000
6+
XDEBUG_ENABLED=0
7+
COMPOSER_CACHE_DIR=${HOME}/.composer

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* @LibreSign/maintainers
2+
3+
/src/ @LibreSign/maintainers
4+
/.github/workflows/ @LibreSign/maintainers
5+
/composer.json @LibreSign/maintainers
6+
/REUSE.toml @LibreSign/maintainers
7+
/phpunit.xml.dist @LibreSign/maintainers
8+
/psalm.xml @LibreSign/maintainers
9+
/rector.php @LibreSign/maintainers

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: libresign
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Bug report
2+
description: Report a reproducible defect
3+
labels: [bug]
4+
body:
5+
- type: textarea
6+
id: summary
7+
attributes:
8+
label: Summary
9+
validations:
10+
required: true
11+
- type: textarea
12+
id: steps
13+
attributes:
14+
label: Steps to reproduce
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: expected
19+
attributes:
20+
label: Expected behavior
21+
validations:
22+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Security disclosure
4+
url: https://github.com/LibreSign/xobject-template/security
5+
about: Please report vulnerabilities privately.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Discussion
2+
description: Start a technical/product discussion
3+
labels: [discussion]
4+
body:
5+
- type: textarea
6+
id: topic
7+
attributes:
8+
label: Topic
9+
validations:
10+
required: true
11+
- type: textarea
12+
id: context
13+
attributes:
14+
label: Context
15+
validations:
16+
required: true
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Feature request
2+
description: Propose a feature for roadmap review
3+
labels: [enhancement]
4+
body:
5+
- type: textarea
6+
id: problem
7+
attributes:
8+
label: Problem statement
9+
validations:
10+
required: true
11+
- type: textarea
12+
id: proposal
13+
attributes:
14+
label: Proposed solution
15+
validations:
16+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Scope
2+
3+
- [ ] Change scope and impact are clearly described
4+
5+
## Evidence
6+
7+
- [ ] Tests added/updated
8+
- [ ] Relevant checks executed
9+
10+
## Performance
11+
12+
- [ ] Performance impact assessed
13+
- [ ] Benchmark threshold still green
14+
15+
## Compliance
16+
17+
- [ ] DCO sign-off in all commits
18+
- [ ] REUSE/SPDX metadata preserved
19+
- [ ] License compatibility reviewed

.github/copilot-instructions.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copilot Instructions
2+
3+
## Mandatory quality flow
4+
5+
1. Implement in small increments.
6+
2. Run focused tests first, then full checks.
7+
3. Ensure performance-sensitive paths stay within benchmark thresholds.
8+
9+
## Compliance and contribution
10+
11+
- DCO sign-off is mandatory for every commit.
12+
- Keep REUSE/SPDX headers and AGPL compatibility.
13+
- Respect allowed dependency licenses.
14+
15+
## Memory-as-Code policy
16+
17+
- Operational details belong to the memory repository, not this package repo.
18+
- Keep this repository documentation minimal (`README.md` + mandatory governance files).
19+
- Avoid doc sprawl.

0 commit comments

Comments
 (0)