2017 © Pedro Peláez
 

project crude-forum

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

image

crude-forum/crude-forum

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  • Tuesday, July 3, 2018
  • by yookoala
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

CrudeForum

![CI results][ci-badge] Stable Version Downloads License, (*1)

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end., (*2)

Originally forked from github.com/stupidsing/crude_forum but changed drastically since., (*3)

Prerequisites

The installation depends on composer. Install composer to your system $PATH., (*4)

Development

All style changes should be done in forum.scss and built by sass. To setup for development:, (*5)

  1. Install nodejs to your system. The package manager npm will be installed along.
  2. Then with npm, install sass to anywhere in your $PATH. Probably with this command:
npm install -g sass

Basic Install

Getting the project files

First, install CrudeForum into the folder myForum (which you may rename as you see fit):, (*6)

composer create-project --prefer-dist crude-forum/crude-forum myForum

Note: If you do not have sass prior to running the composer create-project command, you'd need to run the composer build command to rebuild static assets after install:, (*7)

composer run build

Web server configurations

Then setup your web server to use document of the full path to myForum/public. Please remember to setup your server to route to myForum/public/index.php by default., (*8)

Nginx installation
, (*9)

For [Nginx][nginx], assuming you have `$document_root` points to `myForum/public`, this means to have something like this in your config: ```nginx location / { ... fastcgi_param SCRIPT_FILENAME $document_root/index.php; ... } ``` , (*10)

, (*11)

Apache installation
, (*12)

For [Apache][apache], please remember to setup [AllowOverride all][AllowOverride] in the appropriate [Directory] section so the [.htaccess](public/.htaccess) file can work for you. Probably something like this: ```apache DocumentRoot "/home/to/myForum/public" AllowOverride all ``` , (*13)

, (*14)

Should all the setup correct, you can now browse your forum in browser., (*15)

Alternative Installation

For some legacy hosting environment, you might not be able to do path rewrite as modern PHP routing requires., (*16)

CrudeForum support multiple routing strategies. For that, you may reference the examples:, (*17)

Development

Simply clone this repository. You can run crude forum with modern PHP 7.1+ command line tools:, (*18)

composer dev

which effectively runs php -S localhost:8080 -t ./public., (*19)

If you want to continuously develop the CSS stylesheet, you may consider to use the watch mode of node-sass:, (*20)

composer watch

Both watch and build requires [node-sass]. You may supply additional argument by using the -- syntax. For example, to watch and build asset with embeded source map:, (*21)

composer watch -- --source-map-embed

For detail descriptions for the composer scripts available, use the command:, (*22)

composer list

License

This software is licensed under the MIT License., (*23)

You may get a copy of the license along with the software., (*24)

The Versions

03/07 2018

dev-master

9999999-dev

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/04 2018

dev-userprofile

dev-userprofile

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/04 2018

dev-opengraph-bugfix

dev-opengraph-bugfix

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/04 2018

dev-opengraph

dev-opengraph

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/01 2018

v0.1.1

0.1.1.0

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v0.1

0.1.0.0

A very simple, crude and insecure web dicussion forum developed using PHP. Store data in text files in back-end.

  Sources   Download

MIT

The Requires

 

The Development Requires