{"repo":"cyrildewit/eloquent-viewable","free":true,"listed":false,"github":"https://github.com/cyrildewit/eloquent-viewable","clone":"git clone https://github.com/cyrildewit/eloquent-viewable.git","description":"A minimalistic analytics package for Laravel with seamless view tracking for Eloquent models","language":"PHP","stars":887,"topics":["laravel","php","pageviews","laravel-package","views","analytics","eloquent","eloquent-orm","orm"],"license":"MIT","category":"analytics","readme_excerpt":"Eloquent Viewable A minimalistic analytics package for Laravel with seamless view tracking for Eloquent models Table of Contents Introduction Getting Started Version Compatibility Installation Usage Preparing your model Recording views Queueing view recording Setting a cooldown Retrieving view counts Get total view count Get view count for a specific period Get unique view count Ordering models by view count Order by view count Order by unique view count Order by view count within the specified period Order by view count within the specified collection Get view count of viewable type View collections Remove views on delete Caching view counts Optimizing Database indexes Caching Extending Custom information about visitor Using your own Views Eloquent model Using your own View Eloquent model Customizing how views are created Using a custom crawler detector Adding macros to the Views class Upgrading Changelog Contributing Credits Introduction Eloquent Viewable is a flexible and minimalistic analytics package for Laravel that allows seamless tracking of views for Eloquent models. Rather than incrementing a single counter, it stores each view as its own database record, so you can analyze totals, unique visitors, and custom time periods entirely within your own application. Whether you're running a blog, an e-commerce store, or a custom Laravel application, this package lets you log and analyze views without relying on external analytics services. Quick Example Once installed, you","default_branch":null,"files":null,"tree":[],"storefront":"/r/cyrildewit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cyrildewit/eloquent-viewable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}