Git Product home page Git Product logo

viewcounterbundle's Introduction

The View Counter Bundle

Welcome to the "TchoulomViewCounterBundle".

This bundle is used to count the number of views of web pages (the viewership).

This bundle can also be used to draw a graphical representation of statistical data of the web pages.

Monthly views in 2018

Table of contents

Features include

- Viewcounter
- Statistics
- Geolocation

Documentation

The ViewCounter documentation

Original Credits

Created by Ernest TCHOULOM

License

This bundle is released under the MIT license. See the complete license in the bundle:

LICENSE

Enjoy!

viewcounterbundle's People

Contributors

ernestwisniewski avatar tchoulom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

viewcounterbundle's Issues

Error during composer installation during cache:clear

When running composer require tchoulom/view-counter-bundle, I get this kind of blurry message that makes the install fail.

Composer version: Composer version 2.0.6 2020-11-07 11:21:17
Symfony version:

  • Symfony CLI version v4.21.3 (2020-12-11T09:19:56+0000 - stable)
  • Symfony 5.2.1 (env: dev, debug: true)

image

Deprecation warning

Cold you help to resolve this warning:

User Deprecated: The "App\Entity\ViewCounter::setPage()" method will require a new "string $property" argument in the next major version of its parent class "Tchoulom\ViewCounterBundle\Entity\ViewCounter", not defining it is deprecated.

My method now looks like this:

    public function setPage(ViewCountable $page): ViewCounter
    {
        $this->entry = $page;

        return $this;
    }

The warning is not clear about the location of the new argument or if it will replace any existing argument. Or even what to do with the $property value.!?

Error in the doc

Its not:

$this->comments->removeElement($viewCounter);

But

$this->viewCounters->removeElement($viewCounter);

Best

Storage

I want to use filesystem storage, but get an error
Screenshot_2

tchoulom_viewcounter.yaml
Screenshot_3

composer.json
Screenshot_2

MySQL Support

First of all, amazing work! Is there any chance you can add (or explain how to add) MySQL support for storage of views + statistics?

Thank you.

Does not work with symfony 5

I'm trying to install this cool bundle on symfony 5, but throws a error.

  • tchoulom/view-counter-bundle 3.7.3 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    • tchoulom/view-counter-bundle 3.7.2 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    • tchoulom/view-counter-bundle 3.7.1 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    • tchoulom/view-counter-bundle 3.7.0 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    • Installation request for tchoulom/view-counter-bundle ^3.7 -> satisfiable by tchoulom/view-counter-bundle[3.7.0, 3.7.1, 3.7.2, 3.7.3].

Other stat file method than disk

I use this plugin inside a docker project. I was wondering if there are any other methods than disk cache to store the stats file? My filesystem is read only. Could i use a google droplet for example in combination with gaufrette?

Hope someone has a tip.

Error message in profiler

Hi,
I have this error on profiler:
The field mybundle\Entity\myentity#viewCounters is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity mybundle\Entity\ViewCounter#event does not contain the required 'inversedBy="viewCounters"' attribute.
Do i missed something ?

Error in Symfony 4.4: @MappedSuperclass annotation is not loaded

I'm trying to install the bundle in symfony 4.4 but i'm getting the following error:

!!    [Semantical Error] The annotation "@MappedSuperclass" in class Tchoulom\Vie  
!!    wCounterBundle\Entity\ViewCounterInterface was never imported. Did you mayb  
!!    e forget to add a "use" statement for this annotation?      

Hope there is an easy fix, seems like a nice bundle!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.