Skip to content

Commit 67b30f6

Browse files
committed
docs: improve documentation structure and content
1 parent 1801ff4 commit 67b30f6

26 files changed

+91
-61
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Goran Ninkovic
3+
Copyright (c) 2025 Goran Ninkovic
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Blueprint
22

3-
This repository contains a DDEV configuration alongside various other tools that help us ensure consistency across local environments as well as quality within PHP codebases.
3+
A curated collection of tools and best practices for PHP development.
44

5-
## License
6-
7-
This repository is licensed under the MIT license. See [LICENSE.md](LICENSE.md) for more information.
5+
## Key Features
6+
- Streamlined local development with [DDEV](https://ddev.com/).
7+
- Static analysis with [PHPStan](https://phpstan.org/) and [Psalm](https://psalm.dev/).
8+
- Automated code formatting with [EasyCodingStandard](https://github.com/symplify/easy-coding-standard).
9+
- Git hooks for quality enforcement.
810

911
## Requirements
1012

@@ -29,3 +31,7 @@ curl -sSL https://raw.githubusercontent.com/TerrorSquad/php-blueprint/main/bluep
2931
3. Follow the instructions on the screen.
3032

3133
4. Commit the changes and push the branch to your repository.
34+
35+
36+
## License
37+
This repository is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.

blueprint/.github/CONTRIBUTING.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ contribution.
66
## Table of Contents
77

88
- [Contributions](#contributions)
9-
- [Table of Contents](#table-of-contents)
10-
- [Initial setup](#initial-setup)
9+
- [Initial Setup](#initial-setup)
1110
- [Contributing](#contributing)
12-
- [Conventions used](#conventions-used)
13-
- [Branches](#branches)
14-
- [Commits and commit messages](#commits-and-commit-messages)
15-
- [Commit Message Format](#commit-message-format)
11+
- [Branch Naming](#branch-naming)
12+
- [Commit Messages](#commit-messages)
1613
- [Tools We Use](#tools-we-use)
1714
- [Required Visual Studio Code Extensions](#required-visual-studio-code-extensions)
18-
- [Required PHPStorm extensions](#required-phpstorm-extensions)
19-
- [Optional PHPStorm extensions](#optional-phpstorm-extensions)
15+
- [Required PHPStorm Extensions](#required-phpstorm-extensions)
2016
- [Code Quality with SonarQube](#code-quality-with-sonarqube)
2117

2218
## Initial setup
@@ -41,21 +37,20 @@ contribution.
4137
This project uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). This ensures git history is
4238
clean and readable.
4339

44-
### Branches
40+
### Branch Naming
4541

4642
Branches must be named in the following format:
4743

4844
`<type>/<prefix>-<ticket_number>-<description>`
4945

5046
Where the prefix can be either `PRJ` (for JIRA tickets) or `ERM` (for Easy RedMine tickets).
5147

52-
examples:
48+
#### Examples:
49+
- `feature/PRJ-1234-add-login-feature`
50+
- `fix/ERM-5678-correct-auth-bug`
51+
- `chore/PRJ-9101-update-dependencies`
5352

54-
- `feature/PRJ-1234-my-new-feature`
55-
- `fix/ERM-1234-fix-user-auth`
56-
- `chore/PRJ-1234-update-ci-config`
57-
58-
This will allow us to find the corresponding branches easily within JIRA or ERM.
53+
This naming convention ensures branches are easily identifiable and traceable to their corresponding tasks or issues.
5954

6055
### Commits and commit messages
6156

@@ -66,10 +61,14 @@ We use Conventional Commits to maintain a clear and informative commit history.
6661
generation, versioning, and other project
6762
management tasks.
6863

69-
#### Commit Message Format
64+
### Commit Messages
65+
66+
Follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification for clear and consistent commit messages.
7067

7168
Each commit message should adhere to the following format:
7269

70+
#### Format
71+
7372
```
7473
<type>[optional scope]: <description>
7574
@@ -84,15 +83,20 @@ Each commit message should adhere to the following format:
8483
- body (optional): A more detailed explanation of the change, if necessary.
8584
- footer(s) (optional): Additional information like breaking changes or issue references (e.g., "BREAKING CHANGE: ..."
8685
or "Fixes #123").
86+
- **type**: The type of change (e.g., feat, fix, chore, docs).
87+
- **scope** (optional): The area of the codebase affected.
88+
- **description**: A brief summary of the change.
89+
- **body** (optional): Detailed explanation, if needed.
90+
- **footer(s)** (optional): Additional info like breaking changes or issue references.
8791

88-
Examples
92+
#### Examples
8993

9094
- `feat: add user authentication`
9195
- `fix(auth): correct password validation error`
9296
- `chore: update dependencies`
9397
- `docs: improve installation instructions`
9498

95-
Commitlint will automatically append the ticket Id to the commit message `footer`. This way you can focus on the title and optionally the body.
99+
Commitlint will automatically append the ticket ID to the commit message `footer`. Focus on the title and optionally the body.
96100

97101
## Tools We Use
98102

docs/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineAppConfig({
3333
footer: {
3434
credits: {
3535
icon: '🚀',
36-
text: 'By Goran Ninkovic 2024',
36+
text: 'By Goran Ninkovic ' + new Date().getFullYear() ,
3737
href: 'https://goranninkovic.com'
3838
},
3939
fluid: false

docs/content/0.index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ main:
1212
---
1313
cta:
1414
- Explore Now
15-
- /development_environment/wsl
15+
- /integration_guide/integration_guide
1616
secondary:
1717
- Star on GitHub
1818
- https://github.com/TerrorSquad/php-blueprint/
@@ -30,7 +30,7 @@ The PHP Blueprint provides a curated collection of best practices, tools, and re
3030
- Early bug detection with [PHPStan](https://phpstan.org/) and [Psalm](https://psalm.dev/)
3131
- Consistent code style with [EasyCodingStandard](https://github.com/easy-coding-standard/easy-coding-standard)
3232
- Effortless code modernization with [Rector](https://getrector.org/)
33-
- Automated workflows with Git hooks and [CommitLint](https://commitlint.js.org/)
33+
- Automated workflows with Git hooks and [CommitLint](https://commitlint.js.org/)
3434
- Clear API documentation with [Swagger-PHP](https://zircote.github.io/swagger-php/) and [ReDoc](https://github.com/Redocly/redoc)
3535
- And much more...
3636
::
@@ -83,7 +83,7 @@ Key Features
8383
#title
8484
Commit Message Linting
8585
#description
86-
Ensure clear and consistent commit messages with [CommitLint](https://commitlint.js.org/)
86+
Ensure clear and consistent commit messages with [CommitLint](https://commitlint.js.org/)
8787
::
8888

8989
::card{icon=noto:gear}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
title: "Integration Guide"
2+
icon: heroicons-outline:cog
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Quick Start
2+
3+
Follow these steps to integrate the PHP Development Booster into your existing PHP project:
4+
5+
1. **Prepare Your Project**:
6+
- Ensure your PHP project is under version control (e.g., Git).
7+
- Check out a new branch and ensure there are no uncommitted changes.
8+
9+
2. **Run the Integration Script**:
10+
Execute the following command in your project root to integrate the booster:
11+
```bash
12+
curl -sSL https://raw.githubusercontent.com/TerrorSquad/php-development-booster/main/blueprint/integrate_blueprint.sh | bash
13+
```
14+
15+
3. **Complete the Integration**:
16+
- Follow the on-screen instructions provided by the script.
17+
- Review the changes made to your project.
18+
19+
4. **Commit and Push**:
20+
- Commit the changes to your branch:
21+
```bash
22+
git add .
23+
git commit -m "Integrate PHP Development Booster"
24+
```
25+
- Push the branch to your repository and create a pull request for review.
File renamed without changes.
File renamed without changes.

docs/content/1.development_environment/3.ubuntu_development_enviroment.md renamed to docs/content/2.local_development_environment/ubuntu_development_environment.md

File renamed without changes.

0 commit comments

Comments
 (0)