Skip to content

jimhartford/forum

 
 

Repository files navigation

Phosphorum 2

Build Status

This is the official Phalcon Forum you can adapt it to your own needs or improve it if you want.

Please write us if you have any feedback.

Thanks.

NOTE

The master branch will always contain the latest stable version. If you wish to check older versions or newer ones currently under development, please switch to the relevant branch.

Get Started

Requirements

To run this application on your machine, you need at least:

Installation

Install composer in a common location or in your project:

$ curl -s http://getcomposer.org/installer | php

Create the composer.json file as follows:

{
    "require": {
        "phalcon/forum": "dev-master"
    }
}

Run the composer installer:

$ php composer.phar install

Then you'll need to create the database and initialize schema:

$ echo 'CREATE DATABASE forum CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root
$ cat schemas/forum.sql | mysql -u root forum

Initial Test Data

You can create fake entries on an empty Phosphorum installation by running:

Note: The script random-entries.php must be executed inside the scripts directory

$ cd scripts
$ php random-entries.php

Change the owner of app/logs and app/cache to whatever user your web server is running as.

This application uses Github as authentication system, you need a client id and secret id to be set up in the configuration (app/config/config.php).

Starting the Beanstalkd client

A PHP client to deliver e-mails must be enabled in background:

$ php scripts/send-notifications-consumer.php &

Tests

Phosphorum use Codeception functional, acceptance and unit tests.

First you need to re-generate base classes for all suites:

$ vendor/bin/codecept build

Sure, for acceptance tests you also need Selenium server executable as well. You need Java installed in order to run the Selenium server. You can launch it by running this:

$ java -jar selenium-server-standalone-2.37.0.jar

Note: replace 2.37.0 to your version.

Note: Selenium may not support the most recent versions of Firefox.

Execute all test with run command:

$ vendor/bin/codecept run
# OR
$ vendor/bin/codecept run --debug # Detailed output

Execute unit test with run unit command:

$ vendor/bin/codecept run unit

More details about Console Commands see here.

License

Phosphorum is open-sourced software licensed under the New BSD License. © Phalcon Framework Team and contributors

About

Phalcon official Forum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 47.8%
  • JavaScript 39.1%
  • Volt 9.1%
  • CSS 3.5%
  • Other 0.5%