This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function array_value($key, $search, $default=NULL, $callback=NULL) { | |
$value = $default; | |
if ( array_key_exists($key, $search) ) { | |
$value = $search[$key]; | |
$value = ( function_exists($callback) ? $callback($value) : $value); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class protector { | |
private $passphrase = null; | |
private $private_key = null; | |
private $public_key = null; | |
public function __construct() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Sample Symfony Application" default="build"> | |
<resolvepath propertyName="root_path" file="./" /> | |
<resolvepath propertyName="config_path" file="./app/config/" /> | |
<php function="date" returnProperty="build_date"> | |
<param value="c" /> | |
</php> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name expertphpdeployments.com www.expertphpdeployments.com; | |
return 301 https://expertphpdeployments.com$request_uri; | |
} | |
server { | |
listen 443; | |
server_name expertphpdeployments.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Your Application" default="build"> | |
<resolvepath propertyName="root_path" file="./" /> | |
<resolvepath propertyName="config_path" file="./app/config/" /> | |
<php function="date" returnProperty="build_date"> | |
<param value="c" /> | |
</php> | |
<php function="time" returnProperty="build_timestamp" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
database_driver: "pdo_pgsql" | |
database_host: "@@DB_SETTINGS_HOST@@" | |
database_port: ~ | |
database_name: "@@DB_SETTINGS_DATABASE@@" | |
database_user: "@@DB_SETTINGS_USERNAME@@" | |
database_password: "@@DB_SETTINGS_PASSWORD@@" | |
test_database_driver: "pdo_pgsql" | |
test_database_host: "@@DB_SETTINGS_TEST_HOST@@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db_settings.host=localhost | |
db_settings.database=application | |
db_settings.username=application | |
db_settings.password= | |
db_settings_test.host=localhost | |
db_settings_test.database=application_test | |
db_settings_test.username=application_test | |
db_settings_test.password= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PHPMINVERSION='5.5.0' | |
PHPVERSION=`php -r "echo phpversion();"` | |
PHPCORRECTVERSION=`php -r "echo version_compare(phpversion(), '$PHPMINVERSION');"` | |
GREEN="\033[1;32m" | |
RED="\033[1;31m" | |
BLUE="\033[1;34m" | |
YELLOW="\033[1;33m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# If Vagrant has already been provisioned, do not do anything. | |
# This saves us from accidentally running `vagrant up` without the --no-provision | |
# flag and messing up the box. | |
VAGRANT_PROVISIONED=/etc/vagrant-provisioned | |
if [ -e $VAGRANT_PROVISIONED ] | |
then | |
exit 0 |
NewerOlder