Skip to content

Instantly share code, notes, and snippets.

@troccoli
troccoli / CookieConsent.php
Created April 30, 2021 15:09
Cookie consent livewire component
<?php
namespace App\Http\Livewire;
use Livewire\Component;
class CookieConsent extends Component
{
public bool $askForConsent;
@webdevmatics
webdevmatics / Datatable.php
Created October 11, 2020 18:34
Livewire datatable #livewire
<?php
namespace App\Http\Livewire;
use App\Product;
use Livewire\Component;
use Livewire\WithPagination;
class Datatable extends Component
{
@andrewahead4
andrewahead4 / rest_insert_post.php
Last active April 18, 2024 13:55
A simple post insert using WP REST API and PHP over basic authentication
<?php
///////////////////////////////////////////////////////////////////////////////////
// //
// This is using a sample local WordPress Install and is not production safe //
// It uses the REST and Basic Auth plugins //
// //
///////////////////////////////////////////////////////////////////////////////////