https://github.com/kenjis/ci4-session-in-plain-php
Using CodeIgniter4 Session in Plain PHP
https://github.com/kenjis/ci4-session-in-plain-php
codeigniter4 php session
Last synced: 3 months ago
JSON representation
Using CodeIgniter4 Session in Plain PHP
- Host: GitHub
- URL: https://github.com/kenjis/ci4-session-in-plain-php
- Owner: kenjis
- Created: 2024-02-18T02:34:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T07:34:58.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T12:11:40.562Z (12 months ago)
- Topics: codeigniter4, php, session
- Language: PHP
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using CodeIgniter4 Session in Plain PHP
This repository shows how to use CodeIgniter4's
[Session Library](https://codeigniter.com/user_guide/libraries/sessions.html)
in plain PHP.
## Requirements
- PHP 7.4 or later
- CodeIgniter 4.4.5
## Diretory Structure
```
.
├── app/
│ └── Config/ ... Config for CodeIgniter4
├── composer.json
├── composer.lock
├── public/ ... Plain PHP application
│ └── index.php
└── vendor/
```
## How to Run
Install Composer dependencies:
```console
$ composer update
```
Create `.env` file:
```console
$ cp env .env
```
Run built-in PHP web server:
```console
$ bin/server.sh
```
and navigate to http://localhost:8000/.