Simple work time clocking service built on Yii 2 framework.
Install TimeClock using Composer:
composer create-project --prefer-dist bizley/timeclock timeclock
Prepare virtual host pointing to /public
directory.
Prepare configuration for DB of your choice. Place it in /src/config/db.php
.
Modify the /src/config/web.php
file to change:
timeZone
(default UTC
),language
(default en-US
; pl
and de
translations are provided in /src/messages/
folder),components > mailer
configuration to actually send emails (needed for password reset),components > formatter
configuration of date and time formats,params > company
(default Company Name
; displayed in footer and other layout places),params > email
(default email@company.com
; used as the email sender address for emails),params > allowedDomains
(default ['@company.com']
; array with email domains allowed for registration).Change /public/index.php
file to set YII_DEBUG
mode to false
and YII_ENV
environment to prod
.
Apply migrations by running in console php yii migrate
.
Start webserver and register first account.
If you want to make an account to be admin run in console php yii admin/set ID
where ID
is DB identifier of account
to be set (usually first one is 1
).
/src/models/RegisterForm.php
and /src/views/site/register.php
.https://www.kalendarzswiat.pl
which is Polish holiday list. If you want to
use something different you must prepare your own code for this. Current implementation is at /src/models/Holiday.php
.php yii migrate
.Read TimeClock Wiki first.
For anything related to Yii go to the Yii 2 Guide.
I really don't want to point obvious links with solutions from there.
You can use this project in whatever way you like as long as you mention where did you get it from.