Skip to content

0.1.2

Compare
Choose a tag to compare
@cyrildewit cyrildewit released this 15 Jun 18:00
· 1062 commits to master since this release

Added

  • New configurable settings to the config file. Developers can now change the primary session key that is used to store the visit history of the users.
  • Added the SessionHistory class for providing an elegant way of checking and adding new visits into the session of the user.
  • Integrated the SessionHistory functionality inside the HasPageVisitsCounter trait. Added two methods: addVisitThatExpiresAt( Carbon $expires_at ) and addVisitThatExpiresAtAndCountAll().
  • The tests/Models/Task model for using inside the TestCases.
  • The main TestCase base class (tests/TestCase.php).
  • The first TestCase: VisitVisitableTest with one method it_can_store_new_visits_into_the_database() and.

Changed

  • Improved the the documentation and project details inside README.md. Updated old code examples.
  • The directory where phpunit will search for tests inside phpunit.xml. From tests to tests/TestCases.
  • The namespace from CyrildeWit/.. to Cyrildewit/.. inside Models/PageVisit.php and Traits/HasPageVisitsCounter.php.