Download the PHP package miklcct/journey_recorder without Composer

On this page you can find all versions of the php package miklcct/journey_recorder. 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 journey_recorder

Journey Recorder

This application helps you to record your public transport journeys while on the go.

System requirements

Installation

As a standalone application

  1. Run composer create-project miklcct/journey_recorder
  2. Load the schema provided in resource/base.sql and all migrations in resource/migrations/up into a MariaDB database.
  3. Configure your web server to have public as the document root, or link a subfolder under the document root to the public folder.

As a library used in a PHP application

  1. Run composer require miklcct/journey_recorder in your PHP application.
  2. Load the schema provided in resource/base.sql and all migrations in resource/migrations/up into a MariaDB database.
  3. Provide your implementation of JourneyResponseFactoryInterface such that the UI fits into your website. The JourneyView class and journey_main.xhtml.php template is a good starting point. If you are using them, link scripts/journey.js and stylesheets/journey.css into your public folder and pass the web path into the JourneyView constructor.
  4. If you want the offline functionality, link journey_service_worker.js into your public folder as well and register it in your script. The provided scripts/journey.js does that, in this case it must be put in the root of the public folder.
  5. Add a route in your website to have JourneyApplication, which is PSR-15 compliant, as the controller.

Usage

This application is for recording journeys only. It doesn't provide any interfaces for later retrieval (except the latest one) or analysis tools.

It allows you to enter the information for a public transport journey, including the distance, fare and tickets. It supports multiple tickets and split tickets. If a distance is not provided, it will attempt to fill it from a previous identical journey.

The ticket list is populated from the previous submission. If no tickets are shown, use the "Get the last inserted journey" button to load them.

The "push into queue" and "pop from queue" buttons are provided to save the form and load it later when it's not ready for submission, or in situations when you are temporarily lacking internet access (such as in the Tube).

If the browser supports service workers and the default script is used, the script registers a service worker to cache resources needed for the application, such that it is usable while offline. Also, the submit buttons are disabled while offline.

Database migrations

The migration files are organised in the structure required by byjg/migration package. However, the use of the library is not necessary. If you want to use it for your database(s), install the CLI interface by running composer global require byjg/migration-cli.

Defects

Some database column names may be misleading. However, to prevent compatibility issues, they will only be fixed in the next major release:

Demos

The following demos can be used for testing, but due to privacy concern (data will go through servers under author's control) they are not suggested being used in production.


All versions of journey_recorder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
miklcct/thin_php_app Version ^0.6
ext-mysqli Version *
yiisoft/session Version ^1.0
thecodingmachine/safe Version ^1.3
http-interop/http-factory-guzzle Version ^1.0
civicrm/composer-compile-plugin Version ^0.20.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 miklcct/journey_recorder contains the following files

Loading the files please wait ....