A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb | |
| sudo dpkg -i elasticsearch-0.90.0.deb |
| <?php | |
| namespace Application\Listener\Doctrine; | |
| use Doctrine\DBAL\DBALException; | |
| use Doctrine\ORM\EntityManager; | |
| use Zend\EventManager\EventInterface; | |
| use Zend\Mvc\MvcEvent; | |
| class FlushEntities |
A list of amazingly awesome PHP libraries, resources and shiny things.
This pie chart is constructed from a CSV file storing the populations of various age groups. The chart employs a number of D3 features:
This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:
| <?php | |
| abstract class BaseModelManager { | |
| protected $em; | |
| protected $class; | |
| protected $repository; | |
| protected $container; | |
| /** | |
| * Constructor. |
| require('js-yaml'); | |
| function writeLn(line) { | |
| var now = new Date(); | |
| console.log(now.toGMTString() + ' - [' + jobs + '] - ' + line); | |
| } | |
| function executeJob(data) { | |
| if (!connection_working) { |
| Hi | |
| I hope this helps you all get started with phonegap and sqlite in your | |
| application | |
| Dean-O | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> |
| #!/usr/bin/env bash | |
| echo "--- Good morning, master. Let's get to work. Installing now. ---" | |
| echo "--- Updating packages list ---" | |
| sudo apt-get update | |
| echo "--- MySQL time ---" | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
| // ------------------------------------------------------------------ | |
| // Friend collection, where _id is a user.Id and Friends is a list, of user.Id. | |
| // Note: friending and unfriending is a two step operation in this scheme: | |
| > db.friends.find() | |
| { "_id" : 1, "friends" : [ 2, 3, 4 ] } | |
| { "_id" : 2, "friends" : [ 1, 3, 5 ] } | |
| { "_id" : 3, "friends" : [ 1, 2, 4, 5 ] } | |
| { "_id" : 4, "friends" : [ 1, 3, 5 ] } | |
| { "_id" : 5, "friends" : [ 2, 3, 4 ] } |