codeigniter-restserver icon indicating copy to clipboard operation
codeigniter-restserver copied to clipboard

How to install with composer

Open sensugaz opened this issue 9 years ago • 6 comments

i install library with composer and use the command "use Restserver\Libraries\REST_Controller;" But not found Format , this is message "Unable to load the requested class: Format"

how to fix it ?

sensugaz avatar Aug 04 '17 09:08 sensugaz

This package has no namespace and its not possible to include it with composer.

I needed that also so i forked it and created a composer ready package. I Try to update it as often i can.

https://github.com/Hanisch-IT/codeigniter-restserver

fabianblum avatar Aug 09 '17 15:08 fabianblum

@Hanisch-IT would you be willing to do a PR and add the name spacing code here, and then we can avoid confusing users? (I think I saw a PR from you, but at the time CI didn't really have default composer support).

chriskacerguis avatar Aug 09 '17 15:08 chriskacerguis

@chriskacerguis you are right. I will create a PR the next days for the namespaces and some other small changes that are needed for composer.

For ci i used https://github.com/kenjis/codeigniter-composer-installer to install it with composer. Many tools, to use ci like software in 2017 :)

fabianblum avatar Aug 09 '17 20:08 fabianblum

i'll be waiting for this.

franksierra avatar Aug 10 '17 14:08 franksierra

Added a PR #832

fabianblum avatar Aug 26 '17 09:08 fabianblum

Nice ~~

sensugaz avatar Aug 26 '17 09:08 sensugaz