Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer Conversion #4

Open
joshmoody opened this issue May 23, 2013 · 10 comments
Open

Composer Conversion #4

joshmoody opened this issue May 23, 2013 · 10 comments

Comments

@joshmoody
Copy link
Owner

Drop the CodeIgniter dependency and make this library work with Composer. This will mean breaking backwards compatibility because it uses the CI standards for loading configs.

@PanMan
Copy link
Contributor

PanMan commented May 23, 2013

Hmm, I use this Because it is compatible with codeigniter...

@joshmoody
Copy link
Owner Author

@PanManAms It will still be compatible with CodeIgniter, it just won't have the hard dependency on CodeIgniter and can be used with any PHP framework. The biggest change would be instead of reading your config with $this->config->item();, configuration options will need to be passed in to the library.

Once bundled as a Composer library, it can be installed into projects written in CI, Laravel, Fuel, Symfony, etc with a single command.

http://net.tutsplus.com/tutorials/php/easy-package-management-with-composer/

@PanMan
Copy link
Contributor

PanMan commented May 23, 2013

Ah, cool. As long as it stays compatible, it sounds like a great idea :)

@GeeGirls4
Copy link

So I would have to download composer, test it then reapply it to codeigniter?

@joshmoody
Copy link
Owner Author

@deongee Yes, but if you aren't already using Composer, I strongly encourage you to look into it. It's the best thing to happen to PHP since PEAR. I'll most likely move the Composer/Packagist version to a new repo. I'll update this repo to be a CI wrapper library around the composer package and move the native CI implementation to a branch for legacy support.

@GeeGirls4
Copy link

I'm getting a lot of heat from the customer and just got tasked this project. I'm not the original programmer for this dashboard which is developed with Codeigniter. Is it a way I can use it for Codeigniter without composer? I tried using composer 1st but its taking too much time that I should be spending on fixing CI.

Do you have any suggestions on how I can get this done soon?

@joshmoody
Copy link
Owner Author

The current version was made for CI. Installation is pretty straightforward. Download a zip and follow the instructions in the README. Make sure you install the required curl library mentioned in the README and register an app at https://dev.twitter.com/apps to create an app and get your consumer key and consumer secret.

@xenioushk
Copy link

Hello Josh,
I tried to run example code from local server and it's showing me an error message. Here goes the message -

"{"success":false,"error":"Could not get bearer token. Error: 60: SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"}

I followed all your instructions according to your README file.

Please help me to solve this issue.
Thank You.

@PanMan
Copy link
Contributor

PanMan commented Jul 3, 2013

Is your servertime set correctly? This is often an issue with SSL errors.

@xenioushk
Copy link

How do I check server time that in local server? Please advice me.

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

No branches or pull requests

4 participants