cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]. Supports IMAP/SMTP, JMAP and soon EWS
http://cypht.org
GNU Lesser General Public License v2.1
1.01k stars 161 forks source link

Cypht Integration with CodeIgniter #266

Closed lysaan closed 2 years ago

lysaan commented 6 years ago

We are integrating Cypht into our application built using PHP Framework CodeIgniter. As CodeIgniter has its own Structure and Cypht has a different Structure. If Cypht.Org has any docs or samples for Integrating it with CodeIgniter then it will be very helpful.

Yamakasi commented 6 years ago

You can use the API but there is nothing more left then that.

If you want a CI based webmail you need to develop one yourself.

jasonmunro commented 6 years ago

Hi @lysaan, thanks for the feedback. I don't know anything about the CI framework, so I'm not sure what type of issues you will run into. Since Cypht is a stand-alone application it has its own framework, and does some things a bit differently than many PHP apps out there. Here are some resources that might help:

API login documentation https://github.com/jasonmunro/cypht/wiki/API-Login

Session options https://github.com/jasonmunro/cypht/wiki/Session-Options

Authentication options https://github.com/jasonmunro/cypht/wiki/Authentication-Options

Hope that helps!

marclaporte commented 5 years ago

@lysaan: I work on ClearOS, which uses CodeIgniter. And I am getting familiar with Cypht. So, I am very interested: How did your project go?

lysaan commented 5 years ago

@lysaan: I work on ClearOS, which uses CodeIgniter. And I am getting familiar with Cypht. So, I am very interested: How did your project go?

Well We have successfully Integrated Cypht into CodeIgniter based System. We are happy that we found couple of Bugs in Cypht and Got fixed by Cypht Team. Now Cypht is working fine in the system.

ulfgebhardt commented 5 years ago

Will you share your code with us @lysaan ? <3

jasonmunro commented 5 years ago

@lysaan if you have integration code that you can share, I will happily create a repo for it and give you credit, or if you prefer create a wiki page linking to your own repo. If that is not something you can do I totally understand. Glad to hear you got it working!

marclaporte commented 5 years ago

@lysaan: any news?

Thanks!

lysaan commented 5 years ago

Hi guys, I was busy so my apologies for the delay. @marclaporte I think the easiest way to integrate Cypht to CI is to use Functional Login and Use Cypht in your System as iFrame.

  1. You can put your Cypht code in CI 3rd Party OR Libraries directory and could use Functional Login for Authentication. Ref: https://github.com/jasonmunro/cypht/wiki/API-Login

  2. Configure hm3.ini file and Use Database for Authentication, Sessions and User setting Ref: https://github.com/jasonmunro/cypht/blob/master/INSTALL

  3. You can use iFrame after successful Login to Your System and Cypht Authentication to use Cypht.

marclaporte commented 2 years ago

Ok, then, so closing this. Anyone searching the right keywords will end up here.