This repository provides the basic application structure of the Claroline platform. It doesn't contain the sources nor the third-party libraries required to make the application fully functional. Those sources have to be installed following the procedure described below.
If you want to contribute or directly browse the sources of the project, here is a (non-exhaustive) list of their dedicated repositories:
$ composer require composer/composer dev-master
$ composer require claroline/bundle-recorder "~3.0"
$ cp composer.json.dist composer.json
$ composer update --prefer-source
(1) $ php app/console claroline:update
(2)(1) At this point, you can ignore the following error: Class Claroline\CoreBundle\Library\Maintenance\MaintenanceHandler is not autoloadable, can not call pre-update-cmd script
(2) At this point, if you have this kind of "general error" :
[Doctrine\DBAL\DBALException]
An exception occurred while executing '
ALTER TABLE icap__portfolio_users
, then modidy the order of plugins in /app/config/operations.xml and put ClarolineBundle in first position.
You can then create a first admin user with:
$ php app/console claroline:user:create -a
The application is accessible in your browser via:
To update your installation to the last stable state, use:
$ composer update --prefer-source
$ php app/console claroline:update
You can install or uninstall a plugin by adding or removing the package in the require section of your composer.json and running:
$ composer update vendor/plugin-name --prefer-source
If the plugin package is already present in your project and if you simply want to install or uninstall it locally, you can use one the following commands:
$ php app/console claroline:plugin:install FooBarBundle
$ php app/console claroline:plugin:uninstall FooBarBundle
In order to run the test suite you must have phpunit installed on your system.
Run the complete test suite with:
$ phpunit -c app
Run the tests for a single directory with:
$ phpunit -c app src/core/Claroline/CoreBundle
The app/build/tools directory gathers configuration files for various analysis and build tools (PHPMD, PHPCS, JSHint, Ant, etc.).
You can install and use them locally (see their respective documentation for usage) or visit our continuous integration server here.
For development documentation, see Claroline/CoreBundle/Resources/doc/index.md.