Skip to content

Commit e0c655c

Browse files
committed
Adding composer and lint files
1 parent bd07419 commit e0c655c

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.arclint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"linters": {
3+
"phpcs": {
4+
"type": "phpcs",
5+
"include" : "(\\.php)",
6+
"exclude": ["(^vendor/)"],
7+
"flags": ["--standard=PSR2"]
8+
}
9+
}
10+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
awsCreds.php
2+
vendor/

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"require": {
3+
"aws/aws-sdk-php": "dev-master",
4+
"guzzle/guzzle": "3.*",
5+
"doctrine/cache":"dev-master"
6+
}
7+
}

getMetrics.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
2-
require_once __DIR__.'/../vendor/autoload.php';
2+
if (!file_exists(__DIR__.'/vendor/autoload.php')) {
3+
echo "Error: composer autoload file not found. Run 'composer install'\n";
4+
exit;
5+
}
6+
7+
require_once __DIR__.'/vendor/autoload.php';
38

49
if (file_exists(__DIR__.'/awsCreds.php')) {
510
include __DIR__.'/awsCreds.php';

0 commit comments

Comments
 (0)