Skip to content

Commit 2dcc9d4

Browse files
committed
initial release v1.0.0
0 parents  commit 2dcc9d4

36 files changed

+4064
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_size = 2

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
# Created by https://www.gitignore.io/api/linux,windows,composer,visualstudiocode
3+
4+
### Composer ###
5+
composer.phar
6+
/vendor/
7+
8+
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
9+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
10+
# composer.lock
11+
12+
### Linux ###
13+
*~
14+
15+
# temporary files which can be created if a process still has a handle open of a deleted file
16+
.fuse_hidden*
17+
18+
# KDE directory preferences
19+
.directory
20+
21+
# Linux trash folder which might appear on any partition or disk
22+
.Trash-*
23+
24+
# .nfs files are created when an open file is removed but is still being accessed
25+
.nfs*
26+
27+
### VisualStudioCode ###
28+
.vscode/*
29+
!.vscode/settings.json
30+
!.vscode/tasks.json
31+
!.vscode/launch.json
32+
!.vscode/extensions.json
33+
.history
34+
35+
### Windows ###
36+
# Windows thumbnail cache files
37+
Thumbs.db
38+
ehthumbs.db
39+
ehthumbs_vista.db
40+
41+
# Folder config file
42+
Desktop.ini
43+
44+
# Recycle Bin used on file shares
45+
$RECYCLE.BIN/
46+
47+
# Windows Installer files
48+
*.cab
49+
*.msi
50+
*.msm
51+
*.msp
52+
53+
# Windows shortcuts
54+
*.lnk
55+
56+
57+
.phpintel/
58+
# End of https://www.gitignore.io/api/linux,windows,composer,visualstudiocode
59+
60+
.env
61+
.phpunit.result.cache
62+
.php_cs.cache

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
php:
3+
- '7.0'
4+
- '7.1'
5+
- '7.2'
6+
7+
cache:
8+
directories:
9+
- $HOME/.composer/cache
10+
11+
before_script:
12+
- composer install
13+
script: composer test

LICENSE

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

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# OpenCF
2+
3+
OpenCF - a PHP Item-based Collaborative Filtering Engine.
4+
5+
## Requirements
6+
OpenCF Package requires PHP 5.6+
7+
> **WARNING:** This library may not function correctly on PHP < 5.6.
8+
9+
## Getting Started
10+
11+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
12+
13+
14+
### Installing
15+
16+
The supported way of installing the OpenCF Package is via Composer.
17+
18+
```sh
19+
$ composer require opencf/opencf
20+
```
21+
22+
## Usage
23+
24+
OpenCF Package is designed to be very simple and straightforward to use. All you have to do is to load rating data, then predict future ratings based on the training set provided.
25+
26+
27+
## Running the tests
28+
29+
you can easly run tests using composer
30+
31+
``` bash
32+
$ composer test
33+
```
34+
35+
## Built With
36+
37+
* [PHP](http://www.php.net) - The programing language used
38+
* [Composer](https://getcomposer.org) - Dependency Management
39+
* [PHPUnit](https://phpunit.de/) - Programmer-oriented testing framework for PHP.
40+
41+
## Contributing
42+
43+
Please read [CONTRIBUTING](https://gitlab.com/opencf/opencf/wikis/) for details.
44+
45+
## Versioning
46+
47+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://gitlab.com/opencf/opencf/tags).
48+
49+
## Authors
50+
51+
- [ElHaouari Mohammed](https://github.com/elhaouari-mohammed)
52+
53+
See also the list of [contributors](https://gitlab.com/opencf/opencf/graphs/master) who participated in this project.
54+
55+
## License
56+
This project is licensed under the MIT License - see the [LICENSE.md](https://gitlab.com/opencf/opencf/blob/master/LICENSE) file for details

composer.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "opencf/opencf",
3+
"description": "OpenCF - an Item-based Collaborative Filtering Engine.",
4+
"keywords": [
5+
"recommendation",
6+
"recommender",
7+
"collaborative filtering"
8+
],
9+
"type": "library",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Elhaouari Mohammed",
14+
"email": "[email protected]"
15+
}
16+
],
17+
"require": {
18+
"php": ">=5.6"
19+
},
20+
"require-dev": {
21+
"phpunit/phpunit": "5.7",
22+
"symfony/var-dumper": "3.4.x-dev",
23+
"phpstan/phpstan": "^0.12.28",
24+
"squizlabs/php_codesniffer": "*"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"OpenCF\\OpenCF\\": "src"
29+
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"OpenCF\\OpenCF\\Tests\\": "tests"
34+
}
35+
},
36+
"scripts": {
37+
"test": "./vendor/bin/phpunit --colors=always --configuration phpunit.xml.dist",
38+
"fix-cs": [
39+
"php-cs-fixer fix src --rules=@Symfony,@PSR2",
40+
"php-cs-fixer fix tests --rules=@Symfony,@PSR2"
41+
],
42+
"analyse": "vendor/bin/phpstan analyse src tests"
43+
}
44+
}

0 commit comments

Comments
 (0)