Skip to content

Commit 7fc272f

Browse files
n8finchNate Finchelvis kahoro
committed
add php and composer workflow templates (#142)
* add php workflow templates * add composer files --------- Co-authored-by: Nate Finch <nate@strattic.com> Co-authored-by: elvis kahoro <elvis@warp.dev>
1 parent c1c0f5f commit 7fc272f

5 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Show a list of available Composer packages
3+
command: |-
4+
composer show
5+
tags:
6+
- composer
7+
- php
8+
description: Show a list of available Composer packages
9+
source_url: "https://getcomposer.org/doc/03-cli.md#show"
10+
author: Rob Mellett
11+
author_url: "https://robmellett.com"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: List all installed Composer packages including their latest version
3+
command: |-
4+
composer show --latest
5+
tags:
6+
- composer
7+
- php
8+
description: List all installed Composer packages including their latest version.
9+
source_url: "https://getcomposer.org/doc/03-cli.md#show"
10+
author: Rob Mellett
11+
author_url: "https://robmellett.com"

specs/composer/update_packages.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Update Composer dependencies to their latest versions
3+
command: |-
4+
composer update
5+
tags:
6+
- composer
7+
- php
8+
description: Updating Composer dependencies to their latest versions.
9+
source_url: "https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies"
10+
author: Rob Mellett
11+
author_url: "https://robmellett.com"

specs/php/php_server.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Start a local PHP server
3+
command: |-
4+
php -S localhost:{{port}}
5+
tags:
6+
- php
7+
description: A command that starts a PHP server in the current directory.
8+
arguments:
9+
- name: port
10+
description: The port number you want to run, e.g. 8080.
11+
default_value: 8080
12+
source_url: "https://www.php.net/manual/en/features.commandline.webserver.php"
13+
author: Nate Finch
14+
author_url: "https://github.com/n8finch"

specs/php/php_server_directory.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Start a local PHP server with a specific document root directory
3+
command: |-
4+
php -S localhost:{{port}} -t {{directory}}
5+
tags:
6+
- php
7+
description: A command that starts a PHP server in the specified directory.
8+
arguments:
9+
- name: port
10+
description: The port number you want to run, e.g. 8080.
11+
default_value: 8080
12+
- name: directory
13+
description: The directory you want the server to run from, e.g. app/public.
14+
default_value: app
15+
source_url: "https://www.php.net/manual/en/features.commandline.webserver.php"
16+
author: Nate Finch
17+
author_url: "https://github.com/n8finch"

0 commit comments

Comments
 (0)