Download the PHP package felixdorn/nest without Composer

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

Nest

Tests Formats

Nest is a simple pseudo-programming language for defining repeatable and non-repeatable events in time.

Here are a couple examples of the syntax:

Nest outputs a list of time periods.

Here's an example output for once 1/1/2021 from 15:00 to 16:00:

Features

Already know this stuff? Jump to the API documentation

Reproducibility

The same code could lead to a completely different output based on the current time.

Therefore, when storing Nest code, you should also store the current time if reproducibility is an issue for you (it probably is).

Keywords

Once

Once indicates that an event is repeated once at a given date.

Implicit once

You may omit the once keyword if you write it at the start of the program.

15/04/2005 processed as once 2005-04-15

at 6 15/04/2005 throws Syntax error, unexpected 15/04/2005

Every

Every indicates that an event is repeated it takes as a parameter one or many weekdays.

See how lists work here.

You may use the shorthand everyday that compiles to every day of the week

You may also use the shorthand weekend that compiles to saturday and sunday

For

For indicates how long an event lasts.

Here's a guide on How you can quantify time in Nest

Here's a list of all the time measurement units you may use:

You may pluralize them to keep the sentence grammatically correct but the compiler won't pick up on it if you don't.

Shorthands such as 1h (1 hour) are also allowed.

Here's a list of all available shorthands:

In

In sets the date of a non-repeatable event relatively to the current date.

Refer to the for keyword for a guide on time measurement units and how to quantify time.

Between

Between constrains the event between two dates.

If you wish to constrain an event between a time range, use from.

From ... to ...

From constrains the event between a time range.

Until

Until is a shorthand for the between keyword.

The start date is the current time.

At

At defines at which time an event starts. It is often used in combination with for that sets the duration of the event.

Lists

A list contains one or many literals such as monday or 1:00 and these are separated with commas or the word and.

Quantifying Time

You can use any number from one to a sixty in literal form.

You can use any non-negative integer such as 1 or 42.

To represent one unit of time, you may use a simpler form:

The compiler doesn't make a difference if you write a or an so for a hour still represents 1 hour even though it is grammatically incorrect.

API

Installation

If you don't have composer, you can download it here.

Usage

If your event does not have fixed boundaries set using between ... and ... or until ..., it repeats indefinitely. Therefore, you need to set manual boundaries at compile-time hence the second CarbonPeriod parameter. You can omit it if you know that your event has fixed boundaries.


All versions of nest with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
nesbot/carbon Version ^2.52
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 felixdorn/nest contains the following files

Loading the files please wait ....