Download the PHP package dcodegroup/laravel-xero-timesheet-sync without Composer

On this page you can find all versions of the php package dcodegroup/laravel-xero-timesheet-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-xero-timesheet-sync

Laravel Xero Timesheet Sync

This package provides the standard xero functionality for syncing timesheets from your app to Xero.

Installation

You can install the package via composer:

Then run the install command.

This will publish the configuration file and the migrations.

Then run the migrations

This will add the following fields to timesheets table and create two new tables.

Configuration

Most of configuration has been set the fair defaults. However you can review the configuration file at config/laravel-xero-timesheet-sync.php and adjust as needed

You will need to add this field to your fillable array within the Timesheet model. Will not need this if you are extending the base timesheet model as that has guarded [].

It is suggested that you also cast the can_include_in_xero_sync as a boolean field in the Timesheet model.

You should add the interface to the Timesheet::class model.

You should add the following trait to the Timesheet model.

you need to implement these methods

In order for the timesheet row to be used / factored into sending to Xero the timesheets.can_include_in_xero_sync needs to be flagged / set as true or value 1. This needs to be implemented at the local app level.

Three helper methods are provided in the XeroTimesheetable.php trait.

Routes

The following routes are exposed by the package

The package exposes some routes that allow you preview timesheets for a user

You can also view a summary of the timesheets for a period

Jobs

Commands

There is a command you can run to update the Xero configurations from dcodegroup/laravel-xero-payroll-au via Laravels scheduler

You should add it to your app/Console/Kernel.php file to run it once a day. You could run it more often if wanted with the --force flag


All versions of laravel-xero-timesheet-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
dcodegroup/laravel-xero-payroll-au Version ^0.1
dcodegroup/laravel-timesheets Version ^0.1
dcodegroup/laravel-xero-oauth Version ^1.0
dcodegroup/laravel-xero-employee Version ^0.1
laravel/framework Version ^7.0|^8.0|^9.0|^10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dcodegroup/laravel-xero-timesheet-sync contains the following files

Loading the files please wait ....