Thelia is an open source tool for creating e-business websites and managing online content. Repo containing the new major version (v2)
PHP HTML CSS JavaScript Smarty Shell
Latest commit cc9f8fc Jan 20, 2017 @bibich bibich committed on GitHub Merge pull request #2339 from roadster31/loop-count-fix
Fix for #2337 to always get a correct LOOP_TOTAL
Permalink
Failed to load latest commit information.
cache add end line on text files Sep 17, 2014
core Fix for #2337 to always get a correct LOOP_TOTAL Jan 18, 2017
docker/php Fixed PECL extentions install script Oct 14, 2016
local Updated module versions Sep 15, 2016
log add end line on text files Sep 17, 2014
setup Fix update sql 2.4.0-alpha1 Sep 17, 2016
templates Merge pull request #2323 from gillesbourgeat/fix/pse-combination-gene… Jan 9, 2017
tests Removed thelia.net from tests Dec 19, 2016
web Init Version 2.4.0-alpha1 Apr 22, 2016
.gitattributes Fix merge conflict for CHANGELOG.md Jul 15, 2015
.gitignore Updated module versions Sep 15, 2016
.travis.yml Use container-based infrastructure for Travis CI Aug 16, 2016
CHANGELOG.md Bump version 2.4.0-alpha1 Sep 15, 2016
CONTRIBUTORS.md fix typo Aug 28, 2015
COPYRIGHT.txt Update COPYRIGHT Aug 3, 2015
LICENSE.txt change license file from GPL to LGPL Apr 18, 2014
Readme.md Bump version 2.4.0-alpha1 Sep 15, 2016
Thelia refactor autoload and add many composer.json Dec 24, 2014
UPDATE.md Fixed typo Nov 14, 2014
UPGRADE-2.3.md Fix request stack Apr 7, 2016
composer.json add symfony/cache to composer Jun 8, 2016
composer.lock add symfony/cache to composer Jun 8, 2016
docker-compose.yml create a dedicated vhost Aug 17, 2015
index.html On thelia root, the user is redirected to /web Aug 6, 2014
php-cs fixed cs Nov 14, 2014
php-cs.bat Synced content with the unix one Nov 19, 2014
phpunit.xml Extract tests from the core and update symfony components Nov 5, 2014
reset_install.bat Fixed "thelia2" administrator email Feb 4, 2016
reset_install.sh Fixed "thelia2" administrator email Feb 4, 2016
run-tests.sh Use container-based infrastructure for Travis CI Aug 16, 2016
travis.php.ini fix segfault problem on travis Nov 14, 2014
unit-tests.bat Using Thelia phpunit instead of host one Jun 21, 2016
unit-tests.sh implement cart management without persistent cookie Jan 8, 2015

Readme.md

Readme

Warning

This is the development repository of Thelia. If you want to create a project, please take a look at thelia/thelia-project

Thelia

Build Status License Scrutinizer Quality Score

Thelia is an open source tool for creating e-business websites and managing online content. This software is published under LGPL.

This is the new major version of Thelia.

A repository containing all thelia modules is available at this address : https://github.com/thelia-modules

Requirements

  • PHP 5.5
    • Required extensions :
      • PDO_Mysql
      • mcrypt
      • intl
      • gd
      • curl
      • dom
    • safe_mode off
    • memory_limit at least 128M, preferably 256.
    • post_max_size 20M
    • upload_max_filesize 2M
    • date.timezone must be defined
  • Web Server Apache 2 or Nginx
  • MySQL 5

MySQL 5.6

As of MySQL 5.6, default configuration sets the sql_mode value to

STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION

This 'STRICT_TRANS_TABLES' configuration results in SQL errors when no default value is defined on NOT NULL columns and the value is empty or invalid.

You can edit this default config in /etc/my.cnf and change the sql_mode to remove the STRICT_TRANS_TABLES part

[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION

Assuming your sql_mode is the default one, you can change the value directly on the run by running the following SQL Command

SET @@GLOBAL.sql_mode='NO_ENGINE_SUBSTITUTION', @@SESSION.sql_mode='NO_ENGINE_SUBSTITUTION'

For more information on sql_mode you can consult the MySQL doc

Archive builders

Thelia's archive builder's needs external libraries. For zip archives, you need PECL zip. See PHP Doc

For tar archives, you need PECL phar. Moreover, you need to deactivate php.ini option "phar.readonly":

phar.readonly = Off

For tar.bz2 archives, you need tar's dependencies and the extension "bzip2". See PHP Doc

For tar.gz archives, you need tar's dependencies and the extension "zlib". See PHP Doc

Download Thelia 2 and install its dependencies

You can get the sources from git and then let composer install dependencies, or use composer to install the whole thelia project into a specific directory

Using git for download and composer for dependencies

$ git clone --recursive https://github.com/thelia/thelia path
$ cd path
$ git checkout 2.3.3 (2.2.6 or 2.1.11)
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Using composer for both download and dependencies

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project thelia/thelia path/ 2.3.3 (2.2.6 or 2.1.11)

If something goes wrong during the install process, you can restart Thelia install wizard with the following command : php composer.phar run-script post-create-project-cmd

Install it

You can install Thelia by two different way

Using install wizard

Installing thelia with the web install wizard allow to create an administrator, add some informations about your shop, etc

First of all, you have to configure a vhost as describe in configuration section.

The install wizard in accessible with your favorite browser :

http://yourdomain.tld/[/subdomain_if_needed]/install

For example, I have thelia downloaded at http://thelia.net and my vhost is correctly configured, I have to reach this address :

http://thelia.net/install

Using cli tools

$ php Thelia thelia:install

or if you use a Thelia project :

$ php composer.phar run-script post-create-project-cmd

You just have to follow all instructions.

Docker and docker compose

This repo contains all the configuration needed to run Thelia with docker and docker-compose.

It requires obviously docker and docker-compose

How to start the configuration :

docker-compose up -d

tip : create an alias for docker-compose, it's boring to write it all the time

All the script are launched through docker. For examples :

docker exec -it thelia_web_1 php Thelia cache:clear
docker exec -it thelia_web_1 php setup/faker.php
docker exec -it thelia_web_1 unit-tests.sh
docker exec -it thelia_web_1 php composer.phar install

Database information :

  • host : mariaDB
  • login : root
  • password : toor

Once started, you can access it with your browser at this url : http://127.0.0.1:8080 and phpmyadmin : http://127.0.0.1:8081

What is missing :

  • confguration for export compression (zip, gzip, etc)

Obviously you can modify all the configuration for your own case, for example the php version or add environment variable for the database configuration. Each time you modify the configuration, you have to rebuild it :

docker-compose build --no-cache

Documentation

Thelia documentation is available at http://doc.thelia.net

Roadmap

The Roadmap is available at http://thelia.net/community/roadmap

Contribute

see the documentation : http://doc.thelia.net/en/documentation/contribute.html

If you submit modifications that adds new data or change the structure of the database, take a look to http://doc.thelia.net/en/documentation/contribute.html#sql-scripts-modification

Usage

Consult the page : http://localhost/thelia/web/index_dev.php

You can create a virtual host and choose web folder for root directory.

To run tests (phpunit required) :

$ phpunit

We still have lot of work to achieve but enjoy this part.