PHP Classes

PHP GuestBook with Database: GuestBook application using MySQL to store posts

Recommend this page to a friend!
  Info   View files Example   View files View files (526)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-01 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 38 All time: 10,827 This week: 112Up
Version License PHP version Categories
guestbook 1.0Custom (specified...7Content management, PHP 7, Applications
Description 

Author

This package provides a GuestBook application using MySQL to store posts.

It implements an application based on the CodeIgniter framework to provide a web interface to let users post comments in a guest book.

The package is configured to use the MySQL database to store posts in database tables accessed via the PHP MySQLi extension.

Picture of Faris AL-Otabi
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

Example

<?php

// Valid PHP Version?
$minPHPVersion = '7.3';
if (
version_compare(PHP_VERSION, $minPHPVersion, '<'))
{
    die(
"Your PHP version must be {$minPHPVersion} or higher to run CodeIgniter. Current version: " . PHP_VERSION);
}
unset(
$minPHPVersion);

// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);

/*
 *---------------------------------------------------------------
 * BOOTSTRAP THE APPLICATION
 *---------------------------------------------------------------
 * This process sets up the path constants, loads and registers
 * our autoloader, along with Composer's, loads our constants
 * and fires up an environment-specific bootstrapping.
 */

// Ensure the current directory is pointing to the front controller's directory
chdir(__DIR__);

// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
require realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php';
// ^^^ Change this if you move your application folder

$paths = new Config\Paths();

// Location of the framework bootstrap file.
$bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
$app = require realpath($bootstrap) ?: $bootstrap;

/*
 *---------------------------------------------------------------
 * LAUNCH THE APPLICATION
 *---------------------------------------------------------------
 * Now that everything is setup, it's time to actually fire
 * up the engines and make this app do its thang.
 */
$app->run();


Details

GuestBook

Simple Guest Book Software created using PHP

How to use

  1. Update composer
    composer update
    
  2. Update .env
  3. Migrate database
php spark migrate

Screenshot

![](https://a.top4top.io/p_1880eoxe51.png)

Copyright

Faris AL-Otaibi - 2021


  Files folder image Files  
File Role Description
Files folder imageapp (3 files, 7 directories)
Files folder imagepublic (4 files, 1 directory)
Files folder imagesystem (10 files, 34 directories)
Files folder imagewritable (1 file, 4 directories)
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file spark Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:38
This week:0
All time:10,827
This week:112Up