Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 4a0b99f

Browse files
committed
Initial commit :)
0 parents commit 4a0b99f

File tree

137 files changed

+12078
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+12078
-0
lines changed

‎.gitignore‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
# Created by https://www.gitignore.io/api/composer,jetbrains
3+
4+
### Composer ###
5+
composer.phar
6+
/vendor/
7+
/phpfastcache-php/vendor/
8+
9+
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
10+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
11+
# composer.lock
12+
13+
14+
### JetBrains ###
15+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
16+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
17+
18+
# User-specific stuff:
19+
.idea/workspace.xml
20+
.idea/tasks.xml
21+
22+
# Sensitive or high-churn files:
23+
.idea/dataSources/
24+
.idea/dataSources.ids
25+
.idea/dataSources.xml
26+
.idea/dataSources.local.xml
27+
.idea/sqlDataSources.xml
28+
.idea/dynamic.xml
29+
.idea/uiDesigner.xml
30+
31+
# Gradle:
32+
.idea/gradle.xml
33+
.idea/libraries
34+
35+
# Mongo Explorer plugin:
36+
.idea/mongoSettings.xml
37+
38+
## File-based project format:
39+
*.iws
40+
41+
## Plugin-specific files:
42+
43+
# IntelliJ
44+
/out/
45+
46+
# mpeltonen/sbt-idea plugin
47+
.idea_modules/
48+
49+
# JIRA plugin
50+
atlassian-ide-plugin.xml
51+
52+
# Crashlytics plugin (for Android Studio and IntelliJ)
53+
com_crashlytics_export_strings.xml
54+
crashlytics.properties
55+
crashlytics-build.properties
56+
fabric.properties
57+
58+
### JetBrains Patch ###
59+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
60+
61+
# *.iml
62+
# modules.xml
63+
# .idea/misc.xml
64+
# *.ipr

‎LICENSE‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2016 phpFastCache
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
Software), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

‎README.txt‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
PhpFastCache for Drupal
2+
====================
3+
4+
The PhpFastCache module makes use of PhpFastCache library.
5+
It's mail goal is to improve Drupal's performances by
6+
adding a new cache backend system depending your needs
7+
8+
DEPENDENCIES
9+
------------
10+
11+
N/A
12+
13+
CONFIGURATION
14+
-------------
15+
16+
1. Enable PhpFastCache module in:
17+
admin/modules
18+
19+
2. You'll now find a PhpFastCache tab in the "Configuration > Development" menu
20+
admin/config/development/phpfastcache
21+
22+
3. Settings up the driver you need and it's options (if needed)
23+
24+
4. Alter your settings.php to add this line:
25+
````php
26+
$settings['cache']['default'] = 'cache.backend.phpfastcache';
27+
```
28+
29+
KNOWN ISSUES
30+
------------
31+
32+
- None at this moment

‎composer.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "drupal/phpfastcache",
3+
"description": "Improve performances using PhpFastCache library.",
4+
"type": "drupal-module",
5+
"homepage": "https://www.drupal.org/project/phpfastcache",
6+
"authors": [
7+
{
8+
"name": "geolim4",
9+
"homepage": "https://www.drupal.org/u/geolim4"
10+
}
11+
],
12+
"support": {
13+
"issues": "https://www.drupal.org/project/issues/phpfastcache",
14+
"source": "http://git.drupal.org/project/phpfastcache.git"
15+
},
16+
"license": "GPL-2.0+",
17+
"require": {
18+
"phpFastCache/phpFastCache": "~5.0"
19+
}
20+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Schema for the configuration files of the phpfastcache module.
2+
3+
phpfastcache.settings:
4+
type: config_object
5+
label: 'PhpFastCache settings'
6+
mapping:
7+
phpfastcache_enabled:
8+
type: boolean
9+
label: 'PhpFastCache Enabled'
10+
phpfastcache_default_ttl:
11+
type: integer
12+
label: 'PhpFastCache default ttl'
13+
phpfastcache_htaccess:
14+
type: boolean
15+
label: 'PhpFastCache htaccess'
16+
phpfastcache_default_driver:
17+
type: string
18+
label: 'PhpFastCache default driver'
19+
phpfastcache_drivers_config:
20+
type: mapping
21+
label: 'Drivers config'
22+
mapping:
23+
files:
24+
type: mapping
25+
label: 'Files driver'
26+
mapping:
27+
path:
28+
type: string
29+
label: 'File path'
30+
securityKey:
31+
type: string
32+
label: 'SecurityKey'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
phpfastcache_enabled: false
2+
phpfastcache_default_ttl: 900
3+
phpfastcache_htaccess: true
4+
phpfastcache_default_driver: files
5+
phpfastcache_drivers_config:
6+
files:
7+
securityKey: ''
8+
path: ''
9+

‎phpfastcache-php/.codeclimate.yml‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#
2+
# This file is part of phpFastCache.
3+
#
4+
# @license MIT License (MIT)
5+
#
6+
# For full copyright and license information, please see the docs/CREDITS.txt file.
7+
#
8+
# @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
9+
# @author Georges.L (Geolim4) <contact@geolim4.com>
10+
#
11+
12+
engines:
13+
duplication:
14+
enabled: false
15+
checks:
16+
Similar code:
17+
enabled: false
18+
UnusedFormalParameter:
19+
enabled: false
20+
Controversial/CamelCaseClassName:
21+
enabled: false
22+
config:
23+
languages:
24+
- ruby
25+
- javascript
26+
- python
27+
- php
28+
fixme:
29+
enabled: true
30+
phpmd:
31+
enabled: true
32+
checks:
33+
CleanCode/ElseExpression:
34+
enabled: false
35+
CleanCode/BooleanArgumentFlag:
36+
enabled: false
37+
Controversial/Superglobals:
38+
enabled: false
39+
Controversial/CamelCaseVariableName:
40+
enabled: false
41+
Design/TooManyPublicMethods:
42+
enabled: false
43+
Design/NpathComplexity:
44+
enabled: false
45+
ratings:
46+
paths:
47+
- "**.inc"
48+
- "**.js"
49+
- "**.jsx"
50+
- "**.module"
51+
- "**.php"
52+
- "**.py"
53+
- "**.rb"
54+
exclude_paths:
55+
- "bin/**"
56+
- "examples/**"
57+
- "tests/**"

‎phpfastcache-php/.scrutinizer.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
before_commands:
2+
- "composer install --no-dev --prefer-source"
3+
4+
filter:
5+
excluded_paths: ["bin/*", "docs/*", "examples/*", "var/*", "vendor/*"]
6+
checks:
7+
php: true
8+
coding_style:
9+
php:
10+
spaces:
11+
around_operators:
12+
concatenation: true
13+
tools:
14+
external_code_coverage: false
15+
php_code_coverage: true
16+
php_code_sniffer:
17+
enabled: true
18+
config:
19+
standard: PSR2
20+
filter:
21+
paths: ["src/*"]
22+
php_mess_detector:
23+
enabled: true
24+
filter:
25+
paths: ["src/*"]

‎phpfastcache-php/.travis.yml‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# This file is part of phpFastCache.
3+
#
4+
# @license MIT License (MIT)
5+
#
6+
# For full copyright and license information, please see the docs/CREDITS.txt file.
7+
#
8+
# @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
9+
# @author Georges.L (Geolim4) <contact@geolim4.com>
10+
#
11+
sudo: false
12+
13+
language: php
14+
15+
services:
16+
- memcached
17+
# - redis-server
18+
before_script:
19+
- |
20+
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
21+
cat var/php/conf/phpfastcache.ini >> /etc/hhvm/php.ini
22+
else
23+
phpenv config-add var/php/conf/phpfastcache.ini
24+
fi
25+
26+
php:
27+
# - 5.3
28+
# - 5.4
29+
- 5.5
30+
- 5.6
31+
- 7.0
32+
- nightly
33+
- hhvm
34+
35+
matrix:
36+
fast_finish: true
37+
allow_failures:
38+
- php: nightly
39+
- php: hhvm
40+
41+
install:
42+
- ./bin/ci/install_dependencies.sh
43+
44+
script:
45+
- php -f bin/ci/run_tests.php

‎phpfastcache-php/CNAME‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
www.phpfastcache.com

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /