Skip to content

Instantly share code, notes, and snippets.

@torian257x
Created May 27, 2019 03:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torian257x/f920231e5018907691621b62a61b0a39 to your computer and use it in GitHub Desktop.
Save torian257x/f920231e5018907691621b62a61b0a39 to your computer and use it in GitHub Desktop.
{
"name": "Myapp/Myapp",
"description": "",
"keywords": ["secret"],
"require": {
"php": ">=5.5.0",
"slim/slim": "3.0",
"slim/php-view": "^2.0",
"monolog/monolog": "^1.17",
"wepay/php-sdk": "^0.2",
"paypal/adaptivepayments-sdk-php": "v3.9.2",
"phpunit/phpunit": "5.4.2",
"davidepastore/slim-validation": "^0.5.0",
"stripe/stripe-php": "^6.6"
},
"autoload": {
"psr-4": {
"Myapp\\": "src/Myapp",
"PayPal\\": "vendor/paypal/adaptivepayments-sdk-php/lib/PayPal"
}
}
}
@torian257x
Copy link
Author

torian257x commented May 27, 2019

notice the folders and files are (from the top of my head)

/yourdevdir/
     composer.json
     src/Myapp/MyTestClass.php
     src/Myapp/MyTestClassB.php

MyTestClass.php

namespace Myapp;
class MyTestClass{

}

MyTestClassB.php

namespace Myapp;
use Myapp\MyTestClass;

class MyTestClassB{
   public function test(){
      $x = new MyTestClass();
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment