Skip to content

Commit

Permalink
updating the project to use composer properly;
Browse files Browse the repository at this point in the history
  • Loading branch information
caseysoftware committed Sep 13, 2012
1 parent 9e71452 commit 38cbea4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,5 +1,5 @@

nbproject/*
.DS_Store

vendors/Slim
vendor
composer.phar
13 changes: 13 additions & 0 deletions composer.json
@@ -0,0 +1,13 @@
{
"name": "web2project/api",
"description": "This is a simple Slim-based API for web2project",
"require": {
"slim/slim": "1.6.7"
},
"authors": [
{
"name": "D Keith Casey Jr",
"email": "keith@caseysoftware.com"
}
]
}
17 changes: 17 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions index.php
@@ -1,4 +1,5 @@
<?php
require_once 'vendor/autoload.php';

//NOTE: This must be configured manually:
$web2project_folder = '../web2project';
Expand Down
3 changes: 0 additions & 3 deletions web2project/web2project.php
@@ -1,8 +1,5 @@
<?php

$slim_folder = 'vendors/Slim/';
require $slim_folder.'Slim/Slim.php';

require_once $web2project_folder.'/base.php';
require_once W2P_BASE_DIR . '/includes/config.php';
require_once W2P_BASE_DIR . '/includes/main_functions.php';
Expand Down

0 comments on commit 38cbea4

Please sign in to comment.