Releases: cyrildewit/eloquent-viewable
Releases · cyrildewit/eloquent-viewable
v0.1.6
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
Changed
- Improved
README.md
. - Updated the
CHANGELOG.md
file. - Improved the comments inside the following files:
PageVisitsCounterServiceProvider.php
,HasPageVisitsCounter.php
andSessionHistory.php
.
Removed
- Removing
string
andint
type hints from the code.
v0.1.4
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 theSessionHistory
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
Added
- The
.travis.yml
file to integrate TravisCI into this project.
Changed
- Fixed a forgotten colon in
README.md
.
0.1.2
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 )
andaddVisitThatExpiresAtAndCountAll()
. - The
tests/Models/Task
model for using inside the TestCases. - The main TestCase base class (
tests/TestCase.php
). - The first TestCase:
VisitVisitableTest
with one methodit_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
. Fromtests
totests/TestCases
. - The namespace from
CyrildeWit/..
toCyrildewit/..
insideModels/PageVisit.php
andTraits/HasPageVisitsCounter.php
.
0.1.1
Changed
- Improved the
README.md
file and updated the code examples. - Renamed the function from
retrievePageVisitsFrom
toretrievePageVisitsCountFrom
inside theHasPageVisitsCounter
trait. - Improved the
convertNumber
function inside theHasPageVisitsCounter
trait. It now returns an object with two properties: number and formatted.
0.1.0
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
andphpunit.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.