matthew / ConfigProvider.php

0 Kedvelések
0 forkok
4 fájlok
Utoljára aktív 1 month ago
An example of attaching a delegator factory to the Mezzio RouteCollectorInterface to automate route registration.
1 <?php
2
3 namespace SomeModule;
4
5 use Laminas\Stdlib\ArrayUtils\MergeRemoveKey;
6 use Mezzio\Router\RouteCollectorInterface;
7
8 class ConfigProvider
9 {
10 public function __invoke(): array

matthew / deploy.sh

0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív 1 year ago
This is a script I use on my host for deploying a website; it includes the ability to rollback if anything fails. I have my github action call this file with the repo name and sha in order to deploy a given site.
1 #!/bin/bash
2
3 set -e
4
5 deploy() {
6 local release_path="$1"
7
8 cd "${release_path}"
9 if [ -f "${release_path}/.deploy/deploy.sh" ]; then
10 /bin/bash .deploy/deploy.sh

matthew / Stratigility Microframework

0 Kedvelések
0 forkok
2 fájlok
Utoljára aktív 1 year ago
An example of how you can write a simple one script framework for a website using PSR-15.
1 {
2 "require": {
3 "laminas/laminas-stratigility": "^3.2",
4 "mezzio/mezzio-fastroute": "^3.0",
5 "laminas/laminas-diactoros": "^2.3",
6 "laminas/laminas-httphandlerrunner": "^1.2"
7 }
8 }
Újabb Régebbi