Skip to content

Instantly share code, notes, and snippets.

View poly-glot's full-sized avatar

Junaid Ahmed poly-glot

View GitHub Profile
version: '3'
services:
strapi:
container_name: strapi
image: strapi/strapi
environment:
- DATABASE_CLIENT=mysql
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
@poly-glot
poly-glot / php-sort-date.php
Created November 27, 2014 12:42
PHP Sort Array by Date
<?php
header('content-type: text/plain');
//Creating Test Data
$event_listing = array();
$event_listing[] = array('event_name' => 'WordPress Meetup', 'event_date' => '2015-03-02');
$event_listing[] = array('event_name' => 'Dribbble Meetup', 'event_date' => '2014-09-23');
$event_listing[] = array('event_name' => 'Behance Meetup', 'event_date' => '2014-12-17');
@poly-glot
poly-glot / magento_api.php
Created May 16, 2013 19:35
Magento XMLRPC Api Client using ZendFramework
<?php
$api = MagentoApi::get_instance();
$api->setHost('your_magento_url/api/xmlrpc/')
->setCredentials('your_magento_api_user','your_magento_api_key');
/***
* For list of Supported Method Please visit
* http://www.magentocommerce.com/api/soap/catalog/catalog.html
*