Skip to content

Instantly share code, notes, and snippets.

View jwhulette's full-sized avatar
🏠
Working from home

Wes Hulette jwhulette

🏠
Working from home
View GitHub Profile
@jwhulette
jwhulette / EnhancedEnum.php
Created September 22, 2022 12:14 — forked from aneesdev/EnhancedEnum.php
EnhancedEnum PHP trait
<?php
trait EnhancedEnum
{
/**
* Get the enum value from the name. e.g case INVOICE = 'invoice'; will return 'invoice'
*
* @param string $name
* @return static
*/
@jwhulette
jwhulette / CronSchedule.php
Last active June 20, 2020 14:50 — forked from m4tthumphrey/CronSchedule.php
[CronSchedule] Allows one to parse a cron expression into human readable text. #php
<?php
namespace App\Models\Common;
/*
* Plugin: StreamlineFoundation
*
* Class: Schedule
*
* Description: Provides scheduling mechanics including creating a schedule, testing if a specific moment is part of the schedule, moving back
@jwhulette
jwhulette / Apache_rewrite_to_Amazon_S3.txt
Last active July 25, 2021 23:03 — forked from NapoleonWils0n/Apache_rewrite_to_Amazon_S3.txt
[Apache S3 Rewrite] #apache #aws
<Directory "/www/sitename/folder/">
<IfModule mod_rewrite.c>
RewriteEngine ON
RewriteRule ^(.*) http://bucktname.s3.amazonaws.com/folder/$1
</IfModule>
</Directory>