denis303/codeigniter4-advanced-app

CodeIgniter4 advanced starter app

dev-master 2021-11-02 14:56 UTC

This package is auto-updated.

Last update: 2024-11-29 05:39:25 UTC


README

Yii 2 Advanced Project Template ported to CodeIgniter 4.

Overview

  • Signup
  • Login
  • Logout
  • Email Confirmation
  • Password Reset
  • Contact Form

Remember me feature not working correct in Chrome (and other browsers) when:

  1. On Startup = "Continue where you left off"
  2. Continue running background apps when Google Chrome is closed = "On"

In this case browser not clean remember me cookie when remember me flag is not checked. This is not a bug in the code, but a feature of modern browsers.

Installation

composer create-project denis303/codeigniter4-advanced-app --stability=dev

Setup

  1. Copy env to .env and tailor for your app, specifically the baseURL and any database settings.

  2. Run php spark migrate -all.

Usage

If you don't receive email, you can create links manually:

  • verification: /user/verifyEmail/<users.id>/<users.email_verification_token>
  • reset password: /user/resetPassword/<users.id>/<users.password_reset_token>

Server Requirements

PHP version 7.2 or higher is required, with the following extensions installed:

  • intl
  • libcurl if you plan to use the HTTP\CURLRequest library

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • mbstring
  • mysqlnd
  • xml (enabled by default - don't turn it off)