Skip to content

Instantly share code, notes, and snippets.

View blorange2's full-sized avatar

blorange2

  • Newable
  • London
View GitHub Profile
<?php
namespace App\Services;
use Carbon\Carbon;
use Illuminate\Support\Facades\Http;
/**
* ExchangeRates is a wrapper class for the Exchange Retes API at https://api.exchangerate.host
*/
class ExchangeRates
@blorange2
blorange2 / create-sass-files-from-flexible-content.php
Created June 9, 2023 12:36
This is a script that allows you to generate scss files based on names of layouts in a flexible content field in ACF
<?php
/**
* When ACF Fields are loaded, if they are flexible content store the name of each layout as a value in the post meta.
* This will allow us to retrieve the original name later.
*
* @param [type] $field
*
* @return void
*/