Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: vendor/bin/heroku-php-apache2
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<img src="http://i.imgur.com/IwbWKJn.png" alt="Activity">
</p>

[![SensioLabsInsight](http://i.imgur.com/zS1IVWU.png)](https://insight.sensiolabs.com/projects/532e42dd-402e-4605-b8a8-5e5dc8fe6dc2)  [![StyleCI](https://styleci.io/repos/74149532/shield)](https://styleci.io/repos/74149532)  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9b9322d8623b4ac281679e0b7dbaffa5)](https://www.codacy.com/app/m1guelpiedrafita/Activity?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=m1guelpf/Activity&amp;utm_campaign=Badge_Grade)  [![License](https://img.shields.io/github/license/m1guelpf/Activity.svg)](LICENSE)  [![Issues](https://img.shields.io/github/issues/m1guelpf/Activity.svg)](https://github.com/m1guelpf/Activity/issues) [![Mantained](https://img.shields.io/maintenance/yes/2016.svg)](https://github.com/m1guelpf/Activity)
[![SensioLabsInsight](http://i.imgur.com/zS1IVWU.png)](https://insight.sensiolabs.com/projects/532e42dd-402e-4605-b8a8-5e5dc8fe6dc2) [![StyleCI](https://styleci.io/repos/74149532/shield)](https://styleci.io/repos/74149532) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9b9322d8623b4ac281679e0b7dbaffa5)](https://www.codacy.com/app/m1guelpiedrafita/Activity?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=m1guelpf/Activity&amp;utm_campaign=Badge_Grade) [![License](https://img.shields.io/github/license/m1guelpf/Activity.svg)](LICENSE) [![Issues](https://img.shields.io/github/issues/m1guelpf/Activity.svg)](https://github.com/m1guelpf/Activity/issues) [![Mantained](https://img.shields.io/maintenance/yes/2016.svg)](https://github.com/m1guelpf/Activity) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/m1guelpf/Activity.svg)](http://isitmaintained.com/project/m1guelpf/Activity "Average time to resolve an issue")

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/m1guelpf/Activity/tree/heroku)

A PHP API to log anything anywhere

Expand All @@ -21,14 +23,26 @@ This script is currently over active development and it is currently in a **beta
* *(Only if using the NodeJS client): Node request package*

## Download:
You can view the lastest **stable** release [here](https://github.com/m1guelpf/Activity/releases/latest).

* You can get the lastest **stable** release [here](https://github.com/m1guelpf/Activity/releases/latest).
* You can get the lastest **beta** release [here](https://github.com/m1guelpf/Activity/archive/master.zip).

## Installation:

1. Download lastest release (check [the downloads section](#download)).
2. Copy all the files to your server root / a subdirectory.
3. Create a MySQL database and fill the access details in the config.example.php
4. Rename config.example.php to config.
5. Change the example settings in the clients to your settings.
6. Enjoy!

## Examples:
You can see examples of use in php, python and bash in [the examples folder](https://github.com/m1guelpf/Activity/blob/master/examples/)

## TO DO:
* [x] Ruby Client
* [x] GO Client
* [ ] C# client
* [x] Retrieve visit information whit GET requests.
* [ ] More clients

Expand Down
26 changes: 26 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "Activity",
"description": "Log anything anywhere.",
"repository": "https://github.com/m1guelpf/Activity-heroku",
"logo": "https://camo.githubusercontent.com/e97534a44c1aa3bed22f7835c8e99a64180a3e55/687474703a2f2f692e696d6775722e636f6d2f497762574b4a6e2e706e67",
"keywords": ["Activity", "php", "m1guelpf"],
"website": "https://github.com/m1guelpf/Activity",
"env": {
"DB_HOST": {
"description": "Your MySQL DB host",
"required": true
},
"DB_NAME": {
"description": "Your MySQL DB name",
"required": true
},
"DB_USER": {
"description": "Your MySQL DB user",
"required": true
},
"DB_PASS": {
"description": "Your MySQL DB password",
"required": true
}
}
}
10 changes: 5 additions & 5 deletions config.example.php → config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

$debug = true; // NEVER enable debug in production!!
$dbhost = 'localhost'; // Your database host (usually localhost)
$dbuser = 'root'; // Your database username
$dbpass = 'root'; // Your database password
$dbname = 'activity'; // Your database name
$debug = false; // NEVER enable debug in production!!
$dbhost = getenv('DB_HOST'); // Your database host (usually localhost)
$dbuser = getenv('DB_USER'); // Your database username
$dbpass = getenv('DB_PASS'); // Your database password
$dbname = getenv('DB_NAME'); // Your database name
$dbport = 3306;
date_default_timezone_set('Europe/Madrid'); // Your timezone
if (!$debug) {
Expand Down
29 changes: 0 additions & 29 deletions examples/example.go

This file was deleted.

24 changes: 0 additions & 24 deletions examples/example.js

This file was deleted.

24 changes: 0 additions & 24 deletions examples/example.php

This file was deleted.

3 changes: 0 additions & 3 deletions examples/example.py

This file was deleted.

3 changes: 0 additions & 3 deletions examples/example.rb

This file was deleted.

5 changes: 0 additions & 5 deletions examples/example.sh

This file was deleted.