Skip to content

Releases: cyrildewit/eloquent-viewable

v0.1.6

19 Jul 13:06
Compare
Choose a tag to compare

Added

  • The composer.json now consists of package auto discovery.

Changed

  • The DocBlocks of some PHP classes have been rewritten to be more descriptive and cleaner.
  • Updated the copyright notices inside the MIT License file.
  • The badges inside the README.md file have been updated. They all now now have a similar style.
  • The description inside the config file has been improved.
  • Updated the documentation inside the README.md file.
  • Replaced the double quotes inside the VisitVisitableTest.php file to single quotes.

Removed

  • Unnecessary comments have been removed from the SessionHistory class.

v0.1.5

14 Jul 12:39
Compare
Choose a tag to compare

Changed

  • Improved README.md.
  • Updated the CHANGELOG.md file.
  • Improved the comments inside the following files: PageVisitsCounterServiceProvider.php, HasPageVisitsCounter.php and SessionHistory.php.

Removed

  • Removing string and int type hints from the code.

v0.1.4

17 Jun 19:00
Compare
Choose a tag to compare

Added

  • A the MIT LICENSE file.
  • A default value for retrieving the table name of page-visits from the config file.

Changed

  • Improved README.md.
  • Changed from phpunit 6.2.0 to 5.7.0 because Orchestral Testbench isn't compatible.
  • Changed from protected to public method: fromCamelCaseToDashes( string $value ) inside the SessionHistory class.
  • Updated the TestCase VisitVisitableTest.

Removed

  • The php file extension from the mergeConfigFrom() function inside the PageVisitsCounterServiceProvider.
  • The php file extension from the config() function inside the HasPageVisitsCounter.

v0.1.3

16 Jun 18:09
Compare
Choose a tag to compare

Added

  • The .travis.yml file to integrate TravisCI into this project.

Changed

  • Fixed a forgotten colon in README.md.

0.1.2

15 Jun 18:00
Compare
Choose a tag to compare

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.

0.1.1

13 Jun 17:25
Compare
Choose a tag to compare

Changed

  • Improved the README.md file and updated the code examples.
  • Renamed the function from retrievePageVisitsFrom to retrievePageVisitsCountFrom inside the HasPageVisitsCounter trait.
  • Improved the convertNumber function inside the HasPageVisitsCounter trait. It now returns an object with two properties: number and formatted.

0.1.0

12 Jun 19:19
Compare
Choose a tag to compare

The initial release of the Laravel Page Visits Counter package.

Added

  • A config file that can be published to the users Laravel application.
  • A database migration file that can be published to the users Laravel application.
  • A Laravel service provider for integrating this package into Laravel applications.
  • An README.md with project details and documentation.
  • This CHANGELOG.md file.
  • A .styleci.yml file with settings.
  • The files: .gitattributes, .gitignore, composer.json and phpunit.xml.
  • A trait (HasPageVisitsCounter) that can be added to Eloquent models.
  • A default Eloquent model (PageVisit) for storing the page visits into the database.
  • A contract for the PageVisit Eloquent model because it can be changed within the configuration file. It uses Laravels Service Container to updates this automatically.