Skip to content

Instantly share code, notes, and snippets.

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

Michael Klein Omegatcu

🏠
Working from home
View GitHub Profile
@taufik-nurrohman
taufik-nurrohman / php-html-css-js-minifier.php
Last active March 20, 2025 17:17
PHP Function to Minify HTML, CSS and JavaScript
<?php
// Based on <https://github.com/mecha-cms/x.minify>
namespace x\minify\_ { // start namespace
$n = __NAMESPACE__;
\define($n . "\\token_boolean", '\b(?:true|false)\b');
\define($n . "\\token_number", '-?(?:(?:\d+)?\.)?\d+');
@jentanbernardus
jentanbernardus / snippet.php
Last active January 6, 2023 14:18
WordPress: Disable new user and password change notification
<?php
if ( !function_exists('wp_new_user_notification') ) {
function wp_new_user_notification( ) {}
}
if ( !function_exists( 'wp_password_change_notification' ) ) {
function wp_password_change_notification() {}
@ziadoz
ziadoz / awesome-php.md
Last active May 8, 2025 07:37
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.