Skip to content

Instantly share code, notes, and snippets.

@yehgdotnet
yehgdotnet / install_phpzip.md
Last active February 7, 2023 13:14
MAMP PRO for Mac OSX - Installing PHP ZIP extension

From Terminal

# install dependencies
brew install autoconf # required by pecl 
brew install libzip


# install zip extenion in your selected MAMP PHP version 
ls /Applications/MAMP/bin/php/
@Jany-M
Jany-M / wp_ics.php
Last active September 19, 2023 03:15 — forked from jakebellacera/ICS.php
[WP] Generate a downloadable .ics file from any WordPress post or custom post type
<?php
/*
For a better understanding of ics requirements and time formats
please check https://gist.github.com/jakebellacera/635416
*/
// UTILS
// Check if string is a timestamp
@misterhon
misterhon / ymapi_connect.php
Last active November 25, 2020 03:38
YourMembership API Requests in PHP
<?php
/**
* Authenticate user via the API
*
* Documentation:
* http://www.yourmembership.com/company/api-reference.aspx
*/
define( 'API_ENDPOINT', 'https://api.yourmembership.com' );
define( 'API_VERSION', '2.02' );