Skip to content

Commit ad61f68

Browse files
committed
First commit
1 parent ad4db78 commit ad61f68

30 files changed

+240
-464
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: Prasit Gebsaap

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_slug/:package_name/discussions/new?category=q-a
4+
url: https://github.com/soap/laravel-workflow-process/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_slug/:package_name/discussions/new?category=ideas
7+
url: https://github.com/soap/laravel-workflow-process/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_slug/:package_name/security/policy
10+
url: https://github.com/soap/laravel-workflow-process/security/policy
1111
about: Learn how to notify us for sensitive bugs

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-workflow-process` will be documented in this file.

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) :vendor_name <author@domain.com>
3+
Copyright (c) Prasit Gebsaap <prasit.gebsaap@outlook.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
# :package_description
2-
3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
7-
<!--delete-->
8-
---
9-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
10-
11-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
12-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
13-
3. Have fun creating your package.
14-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
15-
---
16-
<!--/delete-->
1+
# Provides Laravel workflow guards using Symfony expression and related objects
2+
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/soap/laravel-workflow-process.svg?style=flat-square)](https://packagist.org/packages/soap/laravel-workflow-process)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/soap/laravel-workflow-process/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/soap/laravel-workflow-process/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/soap/laravel-workflow-process/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/soap/laravel-workflow-process/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/soap/laravel-workflow-process.svg?style=flat-square)](https://packagist.org/packages/soap/laravel-workflow-process)
7+
178
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
189

1910
## Support us
2011

21-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/:package_name)
12+
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-workflow-process.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-workflow-process)
2213

2314
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
2415

@@ -29,20 +20,20 @@ We highly appreciate you sending us a postcard from your hometown, mentioning wh
2920
You can install the package via composer:
3021

3122
```bash
32-
composer require :vendor_slug/:package_slug
23+
composer require soap/laravel-workflow-process
3324
```
3425

3526
You can publish and run the migrations with:
3627

3728
```bash
38-
php artisan vendor:publish --tag=":package_slug-migrations"
29+
php artisan vendor:publish --tag="laravel-workflow-process-migrations"
3930
php artisan migrate
4031
```
4132

4233
You can publish the config file with:
4334

4435
```bash
45-
php artisan vendor:publish --tag=":package_slug-config"
36+
php artisan vendor:publish --tag="laravel-workflow-process-config"
4637
```
4738

4839
This is the contents of the published config file:
@@ -55,14 +46,14 @@ return [
5546
Optionally, you can publish the views using
5647

5748
```bash
58-
php artisan vendor:publish --tag=":package_slug-views"
49+
php artisan vendor:publish --tag="laravel-workflow-process-views"
5950
```
6051

6152
## Usage
6253

6354
```php
64-
$variable = new VendorName\Skeleton();
65-
echo $variable->echoPhrase('Hello, VendorName!');
55+
$laravelWorkflowProcess = new Prasit Gebsaap\LaravelWorkflowProcess();
56+
echo $laravelWorkflowProcess->echoPhrase('Hello, Prasit Gebsaap!');
6657
```
6758

6859
## Testing
@@ -85,7 +76,7 @@ Please review [our security policy](../../security/policy) on how to report secu
8576

8677
## Credits
8778

88-
- [:author_name](https://github.com/:author_username)
79+
- [Prasit Gebsaap](https://github.com/soap)
8980
- [All Contributors](../../contributors)
9081

9182
## License

composer.json

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "soap/laravel-workflow-process",
3+
"description": "Provides Laravel workflow guards using Symfony expression and related objects",
44
"keywords": [
5-
":vendor_name",
5+
"Prasit Gebsaap",
66
"laravel",
7-
":package_slug"
7+
"laravel-workflow-process"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/soap/laravel-workflow-process",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
13+
"name": "Prasit Gebsaap",
14+
"email": "prasit.gebsaap@outlook.com",
1515
"role": "Developer"
1616
}
1717
],
1818
"require": {
1919
"php": "^8.2",
20+
"illuminate/contracts": "^10.0||^11.0",
21+
"soap/laravel-workflow-loader": "^0.1.1",
2022
"spatie/laravel-package-tools": "^1.16",
21-
"illuminate/contracts": "^10.0||^11.0"
23+
"symfony/expression-language": "^7.1"
2224
},
2325
"require-dev": {
26+
"larastan/larastan": "^2.9",
2427
"laravel/pint": "^1.14",
2528
"nunomaduro/collision": "^8.1.1||^7.10.0",
26-
"larastan/larastan": "^2.9",
27-
"orchestra/testbench": "^9.0.0||^8.22.0",
29+
"orchestra/testbench": "^9.5",
2830
"pestphp/pest": "^2.34",
2931
"pestphp/pest-plugin-arch": "^2.7",
3032
"pestphp/pest-plugin-laravel": "^2.3",
@@ -35,24 +37,27 @@
3537
},
3638
"autoload": {
3739
"psr-4": {
38-
"VendorName\\Skeleton\\": "src/",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
40+
"Soap\\LaravelWorkflowProcess\\": "src/",
41+
"Soap\\LaravelWorkflowProcess\\Database\\Factories\\": "database/factories/"
4042
}
4143
},
4244
"autoload-dev": {
4345
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests/",
45-
"Workbench\\App\\": "workbench/app/"
46+
"Soap\\LaravelWorkflowProcess\\Tests\\": "tests/",
47+
"Workbench\\App\\": "workbench/app/",
48+
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
49+
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
4650
}
4751
},
4852
"scripts": {
49-
"post-autoload-dump": "@composer run prepare",
53+
"post-autoload-dump": [
54+
"@clear",
55+
"@prepare",
56+
"@composer run prepare"
57+
],
5058
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
5159
"prepare": "@php vendor/bin/testbench package:discover --ansi",
52-
"build": [
53-
"@composer run prepare",
54-
"@php vendor/bin/testbench workbench:build --ansi"
55-
],
60+
"build": "@php vendor/bin/testbench workbench:build --ansi",
5661
"start": [
5762
"Composer\\Config::disableProcessTimeout",
5863
"@composer run build",
@@ -61,7 +66,16 @@
6166
"analyse": "vendor/bin/phpstan analyse",
6267
"test": "vendor/bin/pest",
6368
"test-coverage": "vendor/bin/pest --coverage",
64-
"format": "vendor/bin/pint"
69+
"format": "vendor/bin/pint",
70+
"serve": [
71+
"Composer\\Config::disableProcessTimeout",
72+
"@build",
73+
"@php vendor/bin/testbench serve --ansi"
74+
],
75+
"lint": [
76+
"@php vendor/bin/pint --ansi",
77+
"@php vendor/bin/phpstan analyse --verbose --ansi"
78+
]
6579
},
6680
"config": {
6781
"sort-packages": true,
@@ -73,13 +87,13 @@
7387
"extra": {
7488
"laravel": {
7589
"providers": [
76-
"VendorName\\Skeleton\\SkeletonServiceProvider"
90+
"Soap\\LaravelWorkflowProcess\\LaravelWorkflowProcessServiceProvider"
7791
],
7892
"aliases": {
79-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
93+
"LaravelWorkflowProcess": "Soap\\LaravelWorkflowProcess\\Facades\\LaravelWorkflowProcess"
8094
}
8195
}
8296
},
8397
"minimum-stability": "dev",
8498
"prefer-stable": true
85-
}
99+
}

config/skeleton.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/workflow-process.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
// config for Soap/LaravelWorkflowProcess
4+
return [
5+
6+
];

0 commit comments

Comments
 (0)