Skip to content

Instantly share code, notes, and snippets.

View tomakoon's full-sized avatar
💻
Diving into Mastodon

Thomas Soubrier tomakoon

💻
Diving into Mastodon
View GitHub Profile
@idleberg
idleberg / Install-Mcrypt.md
Last active June 18, 2026 08:09
Install Mcrypt on macOS

Setup php-mcrypt on macOS (and versions of Mac OS X)

Important

I haven't been using PHP for many years, so I have no intention of updating this gist. Hopefully, the process is still the same for newer versions PHP, but I'm the wrong person to ask this. Feel free to comment though!

These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.

Install

Install Mcrypt using Homebrew and PECL (comes with PHP)

@mklooss
mklooss / Observer.php
Created January 9, 2014 08:32
Magento: add layout xml via event to add the layout file direct before local.xml
<?php
class Loewenstark_Layout_Model_Observer
{
// set loewenstark_layout.xml before local.xml
public function addLayoutXml($event)
{
$xml = $event->getUpdates()
->addChild('loewenstark_layout');
/* @var $xml SimpleXMLElement */