Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31 from ch3nkula/v1.0.0-dev
Browse files Browse the repository at this point in the history
updates to composer to match production php version
  • Loading branch information
xSavitar authored Oct 16, 2017
2 parents 0729b55 + aaf03bc commit 5b98102
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
"name": "url/url-shortener",
"description": "URL shortener for PHP",
"type": "project",
"authors": [
{
"name": "Alangi Derick",
"email": "alangiderick@gmail.com"
},
{
"name": "Perside Rosalie",
"email": "rosalieperside@gmail.com"
}
],
"require-dev": {
"vlucas/phpdotenv": "^2.4",
"phpunit/phpunit": "^5.7.23"
"phpunit/phpunit": "4.8.*"
},
"autoload": {
"classmap": [
Expand All @@ -16,15 +26,5 @@
"autoload-dev": {
"classmap": [ "tests/" ]
},
"license": "MIT",
"authors": [
{
"name": "Alangi Derick",
"email": "alangiderick@gmail.com"
},
{
"name": "Perside Rosalie",
"email": "rosalieperside@gmail.com"
}
]
"license": "MIT"
}
1 change: 1 addition & 0 deletions php/shorten.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
require_once '../vendor/autoload.php';

// default environment is localhost
$env = "dev";

if ( strpos( $_SERVER['HTTP_HOST'], "localhost" ) === false ) {
Expand Down

0 comments on commit 5b98102

Please sign in to comment.