Skip to content

Instantly share code, notes, and snippets.

@blashbrook
blashbrook / entrasso_installer.sh
Created October 30, 2025 20:56
Install EntraSSO Package into existing Laravel Application
#!/bin/bash
# Laravel Entra SSO Setup Script
# This script sets up an existing Laravel app to use the Entra SSO package
set -e
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
@blashbrook
blashbrook / laravel_entrasso_package_generator.sh
Last active October 30, 2025 20:54
Laravel Microsoft EntraSSO Package Generator (created with Claude.ai)
#!/bin/bash
# Entra SSO Package Generator
# This script creates the complete package structure with all files
set -e
# Configuration
PACKAGE_NAME="entra-sso"
VENDOR_NAME="YourCompany"
@blashbrook
blashbrook / package_creator.sh
Created September 16, 2025 22:14
Laravel Package Creator
#!/bin/bash
# Package Creator - Fixed Version
# Creates Laravel packages with proper composer.json structure
read -p "Enter vendor name (default: Dcplibrary): " vendor
vendor=${vendor:-Dcplibrary}
read -p "Enter package name: " package
read -p "Enter Laravel project directory path (optional, press enter to skip): " laravel_path
@blashbrook
blashbrook / CatalogTeset.php
Created November 18, 2020 19:37 — forked from iCodeForBananas/CatalogTeset.php
example phpunit test with self signed ssl certificate
<?php
use Goutte\Client;
class CatalogSignupTest extends PHPUnit_Framework_TestCase
{
public function test_successful_catalog_purchase_where_shipping_and_billing_are_the_same_in_washington()
{
$email = 'rick' . mt_rand() . '@example.com';
@blashbrook
blashbrook / pickaday.html
Created November 3, 2020 15:29
pikaday example
<div class="container">
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 sidebar">
<div id="datepicker"></div>
</div>
<div class="col-lg-9 col-md-8 col-sm-6 col-xs-12">
<h2>Selected Date Displays Below</h2>
<div class="well" id="selectedDate"></div>
</div>
</div>
@blashbrook
blashbrook / .gitignore
Created September 29, 2020 17:31
Laravel + PhpStorm .gitignore
### Laravel ###
/vendor/
node_modules/
npm-debug.log
yarn-error.log
# Laravel 4 specific
bootstrap/compiled.php
app/storage/
@blashbrook
blashbrook / Procfile
Created September 26, 2020 06:53 — forked from sdrew/Procfile
Laravel configs for Heroku/Dokku
web: vendor/bin/heroku-php-apache2 public/