Permalink
Browse files

updating the project to use composer properly;

  • Loading branch information...
1 parent 9e71452 commit 38cbea407b8c3361f605565df6ff55e93531197a @caseysoftware committed Sep 13, 2012
Showing with 33 additions and 5 deletions.
  1. +2 −2 .gitignore
  2. +13 −0 composer.json
  3. +17 −0 composer.lock
  4. +1 −0 index.php
  5. +0 −3 web2project/web2project.php
View
@@ -1,5 +1,5 @@
nbproject/*
.DS_Store
-
-vendors/Slim
+vendor
+composer.phar
View
@@ -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"
+ }
+ ]
+}
View
@@ -0,0 +1,17 @@
+{
+ "hash": "ac7d7f8e110d53af78e9b2801ff79a42",
+ "packages": [
+ {
+ "package": "slim/slim",
+ "version": "1.6.7"
+ }
+ ],
+ "packages-dev": null,
+ "aliases": [
+
+ ],
+ "minimum-stability": "stable",
+ "stability-flags": [
+
+ ]
+}
View
@@ -1,4 +1,5 @@
<?php
+require_once 'vendor/autoload.php';
//NOTE: This must be configured manually:
$web2project_folder = '../web2project';
@@ -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';

0 comments on commit 38cbea4

Please sign in to comment.