Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit b56011c

Browse files
committed
Merge pull request #580 from elcodi/feature/reduced-installation-dependencies
Reduced installation dependencies
2 parents c0e6b74 + 2aa32b5 commit b56011c

File tree

16 files changed

+313
-316
lines changed

16 files changed

+313
-316
lines changed

.travis.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22

33
env:
4-
- COMPOSER_OPTIONS="install --prefer-source"
4+
- COMPOSER_OPTIONS="update --prefer-source"
55

66
php:
77
- 5.4
@@ -15,16 +15,13 @@ matrix:
1515
allow_failures:
1616
- php: 7.0
1717
- php: hhvm
18-
# include:
19-
# - php: 5.4
20-
# env: COMPOSER_OPTIONS="update --prefer-lowest"
2118

2219
before_install:
2320
- "export DISPLAY=:99.0"
2421
- "sh -e /etc/init.d/xvfb start"
2522
- "wget http://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar"
2623
- "java -jar selenium-server-standalone-2.39.0.jar > /tmp/selenium.log 2> /tmp/selenium.error &"
27-
- sh -c "echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini"
24+
# - sh -c "echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini"
2825
- /home/travis/.phpenv/versions/$(phpenv version-name)/bin/composer self-update
2926
- sh -c "sudo mkdir vendor"
3027
- sh -c "sudo mount -t tmpfs -o size=512M tmpfs vendor"
@@ -36,9 +33,6 @@ before_script:
3633
- sh -c "sudo mkdir /tmp/Bamboo"
3734
- sh -c "sudo mount -t tmpfs -o size=512M tmpfs /tmp/Bamboo/"
3835

39-
services:
40-
- redis-server
41-
4236
script:
4337
- bin/behat -fprogress --tags="~javascript"
4438
- bin/phpunit

README.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ Bamboo e-commerce
33

44
[![Build Status](https://travis-ci.org/elcodi/bamboo.svg?branch=master)](https://travis-ci.org/elcodi/bamboo)
55

6-
> Warning. This project is not tagged as stable yet. During this Beta stage, we
7-
> aim to find and resolve all bugs, empower testing layer and build even a
8-
> better and bigger project documentation.
9-
106
Welcome to Bamboo e-commerce - a fully-functional e-commerce application built
117
using [Elcodi] components on top of the [Symfony] framework.
128

@@ -20,35 +16,30 @@ focus on offering a good product, we take care of the rest.
2016

2117
## Requirements
2218

23-
We're trying to build this project with a light default dependencies.
19+
We're trying to build this project with a light default dependencies. These are
20+
ours.
2421

2522
### PHP
2623

27-
To use Bamboo and Elcodi you need a PHP version not less than **5.4**
28-
29-
For more info just visit their
30-
[installation page](http://php.net/manual/en/install.php)
24+
To use Bamboo and Elcodi you need a PHP version not lower than **5.4**. For more
25+
info just visit their [installation page](http://php.net/manual/en/install.php)
3126

3227
### PHP GD
3328

34-
Images are a really important part of an store. Bamboo uses PHP GD to
35-
resize and optimize all product images
36-
37-
For more info just visit their
38-
[installation page](http://php.net/manual/en/image.installation.php)
39-
4029
> This PHP extension is used to being already installed when you add PHP in your
4130
> distribution
4231
32+
Images are a really important part of an store. Bamboo uses PHP GD to
33+
resize and optimize all product images. For more info just visit their
34+
[installation page](http://php.net/manual/en/image.installation.php)
35+
4336
After that, you will be able to change the adapter and use other
4437
implementations.
4538

4639
### MySQL
4740

4841
And, where do you save your data? By default we use MySQL, remember to install
49-
it as well as its extension for PHP
50-
51-
For more info just visit their
42+
it as well as its extension for PHP. For more info just visit their
5243
[installation page](http://dev.mysql.com/doc/refman/5.1/en/installing.html)
5344

5445
### Composer
@@ -63,18 +54,6 @@ command:
6354
$ curl -s http://getcomposer.org/installer | php
6455
```
6556

66-
### Redis
67-
68-
Bamboo uses redis to make the app lighter and to minimize the response time.
69-
70-
For more info just visit their
71-
[installation page](http://redis.io/topics/quickstart)
72-
73-
In order to use the last Redis features, like the `HyperLogLog` commands, be
74-
sure your Redis version is at least `v2.8.9`.
75-
76-
> Make sure to have Redis PHP extension installed.
77-
7857
## Installation
7958

8059
If you're used to working with LAMP environment, then you will have Bamboo
@@ -136,6 +115,29 @@ Admin password: 1234
136115

137116
Remember to remove these users properly as soon as you're in production.
138117

118+
119+
## Metrics
120+
121+
Metrics are not enabled by default. If you want to enable them, then you need to
122+
install Redis. For more info just visit their
123+
[installation page](http://redis.io/topics/quickstart)
124+
125+
In order to use the last Redis features, like the `HyperLogLog` commands, be
126+
sure your Redis version is at least `v2.8.9`.
127+
128+
## Cache
129+
130+
By default, Bamboo is installed without any doctrine cache. You can change this
131+
settings by changing the file `app/cache/config/common/cache.yml` and by
132+
changing the value `array` for another one.
133+
134+
You can check some documentation about different types of cache in the
135+
[Doctrine Cache Bundle](https://github.com/doctrine/DoctrineCacheBundle)
136+
repository page.
137+
138+
The most used cache type in Bamboo is `redis`. Make sure then that you have the
139+
php redis extension installed properly.
140+
139141
## Tests
140142

141143
We are doing some tests, and this will be **in cresciendo**. You can ensure

app/config/common/cache.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ doctrine_cache:
55
# Categories cache
66
#
77
elcodi_categories:
8-
type: redis
8+
type: array
99
namespace: %elcodi.core.bamboo.cache_prefix%categories
1010

1111
#
1212
# Menus cache
1313
#
1414
elcodi_menus:
15-
type: redis
15+
type: array
1616
namespace: %elcodi.core.bamboo.cache_prefix%menus
1717

1818
#
1919
# Entity translations cache
2020
#
2121
elcodi_translations:
22-
type: redis
22+
type: array
2323
namespace: %elcodi.core.bamboo.cache_prefix%translations
2424

2525
#
2626
# Comments cache
2727
#
2828
elcodi_comments:
29-
type: redis
29+
type: array
3030
namespace: %elcodi.core.bamboo.cache_prefix%comments

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"require": {
3333
"php": ">=5.4",
3434
"ext-openssl": "*",
35-
"ext-redis": "*",
3635

3736
"symfony/symfony": "^2.7",
3837
"symfony/framework-bundle": "^2.7",
@@ -73,7 +72,7 @@
7372
"mmoreram/cache-flush-bundle": "0.1.2",
7473
"mmoreram/http-headers-bundle": "1.0.0",
7574

76-
"elcodi/elcodi": "self.version"
75+
"elcodi/elcodi": "^1.0"
7776
},
7877
"replace": {
7978
"elcodi-templates/template": "self.version",
@@ -105,6 +104,9 @@
105104
"fabpot/php-cs-fixer": "1.4.2",
106105
"visithor/visithor-bundle": "^0.1.8"
107106
},
107+
"suggest": {
108+
"ext-redis": "If doctrine cache works on top of redis"
109+
},
108110
"scripts": {
109111
"post-install-cmd": [
110112
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
@@ -135,7 +137,6 @@
135137
"app/AppCache.php"
136138
]
137139
},
138-
"minimum-stability": "dev",
139140
"prefer-stable": true,
140141
"config": {
141142
"bin-dir": "bin"

0 commit comments

Comments
 (0)