Skip to content

Commit da5d7fa

Browse files
authored
Add Laravel preset (#2)
* Add laravel preset * format using prettier
1 parent 6128263 commit da5d7fa

15 files changed

Lines changed: 843 additions & 524 deletions

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: ""
55
labels: bug
66
assignees: mhdcodes
7-
87
---
98

109
**Describe the bug**

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: enhancement
66
assignees: mhdcodes
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.prettierrc.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
plugins: ["prettier-plugin-astro"],
4+
overrides: [
5+
{
6+
files: "*.astro",
7+
options: {
8+
parser: "astro",
9+
},
10+
},
11+
],
12+
};

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,15 @@ curl -fsSL https://tryphp.dev/install.sh | bash
3434

3535
### Installing latest PHP version
3636

37+
The following command will automatically download and install the latest stable version of PHP:
38+
3739
```sh
3840
curl -fsSL https://tryphp.dev/install.sh | bash
3941
```
4042

41-
### Installing specific version of PHP
43+
### Installing a specific version of PHP
44+
45+
If you need a specific PHP version, use one of the commands below. This is helpful when compatibility with specific frameworks or projects requires an older PHP version.
4246

4347
#### PHP7.4
4448

@@ -58,10 +62,14 @@ curl -fsSL https://tryphp.dev/8.1/install.sh | bash
5862
curl -fsSL https://tryphp.dev/8.2/install.sh | bash
5963
```
6064

61-
#### PHP8.3
65+
### Installing PHP with specific Framework
66+
67+
You can install PHP with tailored presets for different frameworks or applications. For example, the Laravel preset will install PHP with all extensions required to run a Laravel application.
68+
69+
#### Laravel
6270

6371
```sh
64-
curl -fsSL https://tryphp.dev/8.3/install.sh | bash
72+
curl -fsSL https://tryphp.dev/presets/laravel | bash
6573
```
6674

6775
## 📚 Documentation

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@
88
"start": "astro dev",
99
"build": "astro check && astro build",
1010
"preview": "astro preview",
11-
"astro": "astro"
11+
"astro": "astro",
12+
"format": "prettier . --write"
1213
},
1314
"dependencies": {
1415
"@astrojs/check": "^0.9.4",
1516
"@astrojs/sitemap": "^3.2.1",
1617
"@astrojs/tailwind": "^5.1.2",
17-
"astro": "^4.16.3",
18+
"astro": "^4.16.10",
1819
"astro-seo-meta": "^4.1.1",
19-
"tailwindcss": "^3.4.13",
20+
"tailwindcss": "^3.4.14",
2021
"typescript": "^5.6.3"
22+
},
23+
"devDependencies": {
24+
"prettier": "^3.3.3",
25+
"prettier-plugin-astro": "^0.14.1"
2126
}
22-
}
27+
}

0 commit comments

Comments
 (0)