Download .zip |
Info | Documentation | View files (30) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2020-05-31 (8 hours ago) | Not yet rated by the users | Total: 37 This week: 37 | All time: 9,857 This week: 9 |
Version | License | PHP version | Categories | |||
redbox-tracker 1.0 | MIT/X Consortium ... | 7.3 | User Management, PHP 7 |
Description | Author | |||
This package can track the arrival of users visiting a Web site. Innovation Award
|
<h2 align="center"> <img src="https://user-images.githubusercontent.com/121194/82691564-6b57da80-9c5e-11ea-87ec-639ad2255e8a.png"><br /> Tracking Movement </h2>
<p align="center"> <a href="https://github.com/johnnymast/redbox-tracker/actions?query=workflow%3APhpcs"><img src="https://github.com/johnnymast/redbox-tracker/workflows/Phpcs/badge.svg" /></a> <a href="https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/?branch=master"><img src="https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/badges/quality-score.png?b=master" /></a> <a href="https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/?branch=master"><img src="https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/badges/coverage.png?b=master" /></a> <a href="https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/build-status/master"><img src="https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/badges/build.png?b=master" /></a> </p>
Redbox-tracker allows helps you to track visiting traffic to your Laravel website. New visitors along with their requests will be saved to the database.
We don't require much, but these are the minimum requirements for using Redbox-tracker.
There is one additional requirement if you are contributing to this package. For development on the package itself, we require <code>pdo_sqlite</code> for testing.
The package can be installed using composer.
composer require redbox/tracker
The package will automatically register itself.
Publish configuration file:
php artisan vendor:publish --provider="Redbox\Tracker\Providers\TrackerServiceProvider"
Install the database tables:
php artisan migrate
Create a listener for new visitors in your project:
php artisan make:listener NewVisitorListener
In <code>App\Providers\EventServiceProvider</code> and update the <code>$listen</code> array with:
protected $listen = [
// --
\Redbox\Tracker\Events\NewVisitorEvent::class => [
\App\Listeners\NewVisitorListener::class,
]
// --
];
In <code>App\Listeners\NewVisitorListener</code> you now have access to the visitor data from <code>$event->visitor</code>.
/
* Handle the event.
*
* @param object $event
* @return void
*/
public function handle($event)
{
dd($event->visitor);
}
For more detailed information about how to use this package, I would like to send you to the project wiki.
This project is inspired by Laravel Visitor Tracker. I created this version of this software because I need that functionality for a project of my own. This means I want all my dependencies for that projects 'Inhouse'.
This package is created and maintained by Johnny Mast. For feature requests or suggestions you could consider sending me an e-mail.
Oh and if you've come down this far, you might as well follow me on Twitter. If you like this software please consider giving it a start rating on GitHub.
MIT License
Copyright (c) 2020 Johnny Mast
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Files |
File | Role | Description | ||
---|---|---|---|---|
.github (1 file, 1 directory) | ||||
database (2 directories) | ||||
publishable (1 directory) | ||||
src (3 files, 5 directories) | ||||
tests (1 file, 1 directory) | ||||
.scrutinizer.yml | Data | Auxiliary data | ||
.stylelintrc.json | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
eslintrc.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
package.json | Data | Auxiliary data | ||
phpcs.xml.dist | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2020_05_15_222804_..._visitors_table.php | Class | Class source |
2020_05_17_175544_..._requests_table.php | Class | Class source |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Events (1 file) | ||||
Facades (1 file) | ||||
Middleware (1 file) | ||||
Observers (1 file) | ||||
Providers (1 file) | ||||
Tracker.php | Class | Class source | ||
Visitor.php | Class | Class source | ||
VisitorRequest.php | Class | Class source |
Files | / | tests | / | Feature |
File | Role | Description | ||
---|---|---|---|---|
Eventts (1 file) | ||||
Middleware (1 file) | ||||
Observers (1 file) | ||||
TrackerTest.php | Class | Class source |
Files | / | tests | / | Feature | / | Middleware |
File | Role | Description |
---|---|---|
TrackingMiddlewareTest.php | Class | Class source |
Files | / | tests | / | Feature | / | Observers |
File | Role | Description |
---|---|---|
VisitorObserverTest.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.