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.
language: php | |
sudo: false | |
jdk: | |
- oraclejdk8 | |
addons: | |
apt: | |
packages: | |
- oracle-java8-installer | |
php: | |
- 7.0 |
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
A list of amazingly awesome PHP libraries, resources and shiny things.
#!/usr/bin/env python | |
# Python script to make Skype co-operate with GNOME3 notifications. | |
# | |
# | |
# Copyright (c) 2011, John Stowers | |
# | |
# Adapted from skype-notify.py | |
# Copyright (c) 2009, Lightbreeze | |
# | |
# |
#!/bin/sh | |
targetUser="seld" | |
targetHost="seld.be" | |
parentDir="/home/seld" | |
childDir="packagist.org" | |
port="22" | |
configFile="~/etc/conf/$childDir" |
<?php | |
$exceptionFilter = new ExceptionFilterHandler(); | |
$exceptionFilter->allow('MyBundle\AbstractException') | |
->ignore('MyBundle\ConcreteException'); | |
$errorFilter = new ErrorFilterHandler(); | |
$errorFilter->allow(UniversalErrorCatcher_ErrorCode::E_CORE_ERROR) | |
->ignore(UniversalErrorCatcher_ErrorCode::E_ERROR); |