Download the PHP package tumblr/chorus-timekeeper without Composer

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

Chorus TimeKeeper

The Chorus TimeKeeper is an elegant utility for Dependency Injection (DI) with timekeeping. At its core, it offers a straightforward approach to time management in applications, allowing for consistent time retrieval and even time manipulation for testing purposes. This can be exceptionally helpful when writing tests or simulating various time conditions in your code.

It provides two primary components:

  1. TimeKeeper: Fetches real-time data.
  2. FakeTimeKeeper: Helps in mocking or manipulating time during testing.

For example, when testing time-sensitive components, you can utilize FakeTimeKeeper to preset time scenarios, avoiding the hassle of waiting in real-time or simulating date changes on your system.

Requirements

Installation

You can install the package via Composer:

Basic Usage

Development Workflow

The project has a Makefile to simplify development processes. You can use various make commands to run tests, validate code standards, and more. Here's a quick overview:

1. Prerequisites Setup

Ensure your environment is set up correctly:

2. Testing

Run all tests:

Run only PHPUnit tests:

Generate PHPUnit test coverage:

3. Static Analysis

Use psalm for static analysis:

4. Code Standards

Fix coding standards using PHP CS Fixer:

5. Mutation Testing

Run mutation tests to ensure code quality:

6. Composer

Validate composer files:

7. YAML Linting

Lint YAML files to ensure correctness:

Contributing

If you wish to contribute to the Chorus TimeKeeper, please follow these steps:

  1. Raise an Issue: Before making any changes, create an issue describing your idea or the desired change.
  2. Submit a PR: Once your idea is approved, create a Pull Request. Make sure to include or update unit tests.
  3. Testing & Code Style: Ensure all tests pass (make test) and fix any code style issues (make cs).
  4. Describe Your Changes: Clearly describe what you've changed and include testing instructions.
  5. Breaking Changes Alert: If your contribution introduces breaking changes, please highlight them. Any modification that disrupts the current workflow, like changing a namespace or functionality, is a breaking change.

Remember, if you're planning a significant refactor or introducing breaking changes, your PR might not be approved.

Once your PR is approved, it will be merged, and a new version will be released.

License

This project is licensed under the GNU General Public License v2.0.


All versions of chorus-timekeeper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.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 tumblr/chorus-timekeeper contains the following files

Loading the files please wait ....