View Composer_Introduction.markdown

Introduction

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project
depends on and it will manage (install/update) them for you.

Dependency management

Composer is not a package manager in the same sense as Yum or Apt are. Yes, it deals with "packages" or
libraries, but it manages them on a per-project basis, installing them in a directory (e.g. vendor) inside your
project. By default it does not install anything globally. Thus, it is a dependency manager. It does however
support a "global" project for convenience via the global command.

View Person.php
<?php
/**
* Created by PhpStorm.
* User: mchraiet
* Date: 16/02/17
* Time: 2:52 PM
*/
class Person
{
View zayataroma.module.php
<?php
/**
* @file
* Main zayataroma module.
*/
/**
* Implements hook_menu().
* @return mixed
*/
View class.database.php
<?php
/*
* Mysql database class - only one connection alowed
*/
class Database {
private $_connection;
private static $_instance; //The single instance
private $_host = "HOSTt";
private $_username = "USERNAME";
private $_password = "PASSWORd";
View gist:2597326

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})