2Checkout / 2checkout-php

2Checkout PHP Library
MIT License
83 stars 66 forks source link

Namespace when using laravel #17

Open obonyojimmy opened 8 years ago

obonyojimmy commented 8 years ago

This package lacks a namespace hence , creating a provider and facade using laravel framework becomes very dificult

nikolasp commented 8 years ago

I'm using this library with laravel 5 app and when I'm calling method with this line \Twocheckout_Sale::retrieve($args) from queue it's throwing error that class isn't found. However, same method called out from queue is working. I'm assuming this is beacuse library for autoload is using PSR-0, namespacing doesn't exist and class naming conventions are old and against new PSR-4 autoloading standard.