I just installed omnipay/paypal with composer on my codeIgniter development website. I have read a lot of articles but none seems to point me in the right direction of appropriately using Omnipay with codeigniter, all the dependencies are foxing me and I just don't know where to start. Any article with an example omnipay CI implementation would do thank you.
As long as you can get the dependencies working and loading (usually via composer, although have a look at Tpojka's link for some issues related to autoloading composer packages in CI), there is nothing special about interfacing to Omnipay via any framework rather than any other framework.
Each type of omnipay gateway is a little bit different, so if you have some more specific questions to ask, backed up by a little bit of code (I tried "this" and I got "that error") then we can probably help out a bit more.
All of the examples in the omnipay gateway documentation are generic, that is they should work on any framework. There are no examples specific to CI.
Related
I have more than 3 years of experience in wordpress and php.
Now I want to getting started with laravel.
Can anyone suggest me best links which explains straight forward laravel with latest version.
https://laracasts.com/series/laravel-from-scratch-2017
This Series is totally Free to beginner
The best place to start with Laravel is the documentation, in combination with this laracasts series.
Laracasts calls itself a Netflix for Your Career! and has great tutorials to learn the simple things about Laravel, but also the more in depth parts like unit tests.
Specifically speaking, is it possible to use Consolibyte's Quickbooks PHP DevKit into an app using the CodeIgniter framework? If so, where would I place it in my directory structure, and how would I access it? I'm just doing some preliminary research into whether or not this could be used to integrate my app with Quickbooks Online.
Thanks for any input!
is it possible to use Consolibyte's Quickbooks PHP DevKit into an app using the CodeIgniter framework?
Yes, of course!
If so, where would I place it in my directory structure, and how would I access it?
Entirely up to you. Usually people put it in a library/quickbooks/ directory or something. Then, just use require_once 'path/to/library/quickbooks/QuickBooks.php'; like you would with any other PHP script.
I'm just doing some preliminary research into whether or not this could be used to integrate my app with Quickbooks Online.
It can be used for that.
You'll need a controller that kicks off the OAuth process. So basically you'll use the code from here:
https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/index.php#L134
To show the connect button, and then put this code into a controller to kick off OAuth:
https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/oauth.php
From there, you can use the other example code snippets to exchange data with QuickBooks.
If you have trouble, post your code so we can see what you're doing (feel free to use our support forums if you need more detailed help/discussion: http://www.consolibyte.com/forum/)
I am considering php framework Codeigniter & Cakephp for small site I would be developing but I am open to using pretty much any framework does fullfill the following requirements. requirements are:
A simple pre-build user authentication system or login system as a plugin, something long
the lines of php-login-script.
Allows Easy integration with third-part excel/spreadsheet generation library or
has some plugin.
Should support PHP 5.2, hence symfony2 can't be considered
Bonus points if the framework
has integration with twitter
bootstrap
Looking for framework which can fullfill all of the above points, so I can save some time. Else, I would prefer framework which does most of the requirements & would write rest myself.
So, based on above requirements; which php framework/script would you suggest?
CakePHP2
User plugin https://github.com/cakedc/users
Twitter Bootstrap https://github.com/slywalker/TwitterBootstrap
There are plenty of different xls export helpers. Just google it and review them I can not recommend any of them because I have not used them. We have our own but we did not open source it.
Overall I would recommend to use CakePHP2 in any case over Codeigniter. I've recently had to convert a project from CI to Cake and now I know why... ;)
I don't know codeIgniter very well, but for Cakephp I can tell you that:
Authentifiaction is easy to implement.
It's easy to generate xml (which Excel can open), for .xls you'll have to do all by yourself.
supports 5.2
there is a helper for twitter bootstrap, but I've never used it.
For me the deal breaker concerning CodeIgniter is the lack of built-in ORM. You should consider if you need one or not.
I have been writing my site with Codeigniter for a while. My site has functions like a social networking site: login, make friends, comments, follow, post status, etc.
I just found out about Elgg, seems great so far.
I want to know, without knowing too much about Elgg, would you usually use it :
as a replacement of CI
or
a compliment to CI
I can rewrite the CI code into Elgg if really neccessary, of course, not something I would like to do.
Elgg is meant to be the backbone of your site. It could be installed alongside Codeigniter, but there's no clear way to integrate them - it's similar to trying to use CI and WordPress together. You probably want to choose one or the other, they are not comparable.
Elgg = Social Networking Engine
Codeigniter = PHP Framework
Elgg is a full-blown solution, while Codeigniter is a means to write one yourself.
I'm starting a new project with codeigniter, and I'd like to start on a system that's already built so I can reduce the time of development.
Is there a good system that handles user authentication along with an admin interface to manage users that can be easily expanded to a web-app?
If this is too vague, I can expand
This thread here appears to have some answers
But the question was more about libraries. Either way, implementing some of the things on that thread would save you time.
You're looking for is a Content Management System (CMS).
There are a few ones out there that use Codeigniter as a framework for their CMS.
Edit: Even if you can't find a boilerplate CMS that you like, you can google about CMS's to design a simple one of your own as there's LOTS of tutorials and information about requirements and such when you know the term CMS.
I recommend Redux Auth for CodeIgniter. It comes with an example implementation, and can easily be used to manage user authentication for your CodeIgniter site. I just implemented Beta2 with the latest version of CodeIgniter, so while it's not actively updated, it still works with the latest build.
I'm using Bonfire as default admin interface.
I've just started looking into Bonfire:
Bonfire helps you build CodeIgniter-based PHP web applications even faster, by providing powerful tools and a beautiful interface you won't be ashamed to show your client.
Ready to customize Admin Interface.
User Management with Role-Based Access Control.
Fully Modular codebase.
Built around HMVC.
Database backup, migration, and maintenance.
Powerful, parent/child capable theme engine.
Simple Email Queue to keep your ISP happy.
UI-based module builder.
Looks good at first glance!