Skip to content

Commit e9368c4

Browse files
committed
Merge commit '6bcd922d07e5c23dcf14c0bff493b590d1cb7389' as 'components/CounterComponent'
2 parents 7ea756a + 6bcd922 commit e9368c4

10 files changed

Lines changed: 10636 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Environment Files
2+
.env
3+
.env.backup
4+
.env.production
5+
6+
# Composer Related
7+
composer.lock
8+
/vendor
9+
/auth.json
10+
11+
# Frontend Assets
12+
/node_modules
13+
/public/build
14+
/public/hot
15+
/public/storage
16+
17+
# Storage
18+
/storage/*.key
19+
/storage/pail
20+
21+
# Logs
22+
npm-debug.log
23+
yarn-error.log
24+
25+
# Caches
26+
.phpunit.cache
27+
.phpunit.result.cache
28+
.phpactor.json
29+
/build
30+
/dist
31+
32+
# Testing
33+
phpunit.xml
34+
testbench.yaml
35+
.phpunit.cache
36+
.phpunit.result.cache
37+
38+
# Documentation and Coverage
39+
/docs
40+
/coverage
41+
42+
# IDE Helpers
43+
_ide_helper.php
44+
_ide_helper_models.php
45+
.phpstorm.meta.php
46+
47+
# Editors and IDEs
48+
/.idea
49+
/.fleet
50+
/.vscode
51+
/.zed
52+
53+
# Operating system files
54+
.DS_Store
55+
56+
# Miscellaneous
57+
Homestead.json
58+
Homestead.yaml
59+
phpstan.neon

components/CounterComponent/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Counter component example
2+
A counter component example for Backstage.
3+
4+
<img width="266" height="321" alt="afbeelding" src="https://github.com/user-attachments/assets/8824edb9-f40e-4818-9da3-4d072025f938" />
5+
6+
For more information see [backstage/components](https://github.com/backstagephp/components).
7+
8+
## Installation
9+
10+
```bash
11+
composer require backstage/components
12+
php artisan backstage:component counter
13+
```
14+
15+
Add the following to your blade file.
16+
17+
```blade
18+
<x-counter />
19+
```
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"name": "backstage/counter-component",
3+
"description": "Laravel Counter Component",
4+
"keywords": [
5+
"backstage",
6+
"laravel",
7+
"laravel-blade"
8+
],
9+
"homepage": "https://github.com/backstagephp/Counter-Component",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Mark van Eijk",
14+
"email": "mark@vormkracht10.nl",
15+
"role": "Developer"
16+
},
17+
{
18+
"name": "Yoni van Haarlem",
19+
"email": "yoni@vormkracht10.nl",
20+
"role": "Developer"
21+
},
22+
{
23+
"name": "Mathieu de Ruiter",
24+
"email": "mathieu@vormkracht10.nl",
25+
"role": "Developer"
26+
}
27+
],
28+
"require": {
29+
"php": "^8.3",
30+
"illuminate/contracts": "^11.0||^12.0",
31+
"spatie/laravel-package-tools": "^1.14.0",
32+
"symfony/cache": "^7.0"
33+
},
34+
"require-dev": {
35+
"laravel/pint": "^1.0",
36+
"nunomaduro/collision": "^8.0",
37+
"larastan/larastan": "^2.9.0",
38+
"orchestra/testbench": "^9.0",
39+
"pestphp/pest": "^3.0",
40+
"pestphp/pest-plugin-arch": "^3.0",
41+
"pestphp/pest-plugin-laravel": "^3.0",
42+
"phpstan/extension-installer": "^1.0",
43+
"phpstan/phpstan-deprecation-rules": "^1.0",
44+
"phpstan/phpstan-phpunit": "^1.0"
45+
},
46+
"autoload": {
47+
"psr-4": {
48+
"Backstage\\Counter\\": "src/"
49+
}
50+
},
51+
"scripts": {
52+
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
53+
"analyse": "vendor/bin/phpstan analyse",
54+
"test": "vendor/bin/pest",
55+
"test-coverage": "vendor/bin/pest --coverage",
56+
"format": "vendor/bin/pint"
57+
},
58+
"config": {
59+
"sort-packages": true,
60+
"allow-plugins": {
61+
"pestphp/pest-plugin": true,
62+
"phpstan/extension-installer": true
63+
}
64+
},
65+
"extra": {
66+
"laravel": {
67+
"providers": [
68+
"Backstage\\Counter\\CounterServiceProvider"
69+
]
70+
}
71+
},
72+
"prefer-stable": true
73+
}

0 commit comments

Comments
 (0)