Download the PHP package a2htray/cp-date-fns without Composer

On this page you can find all versions of the php package a2htray/cp-date-fns. 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 cp-date-fns

The implementation of JavaScript Library date-fns by using PHP

Copy from date-fns

Installation

We can simply add the package into our project by using Composer to run the command below:

Table of methods

Method Description
Utils::addYears Return the date added serveral years
Utils::addQuarters Return the date add several quarters
Utils::addMonths Return the date add several months
Utils::addDays Return the date add several days
Utils::addHours Return the date add several hours
Utils::addMinutes Return the date add several minutes
Utils::addSeconds Return the date add serveral seconds
Utils::addMilliseconds Return the date add serveral milliseconds
Utils::closeIndexTo Return an index of the closest date from the array comparing to the given date
Utils::compareAsc Compare two dates return 1、-1 or 0
Utils::compareDesc Compare two dates return 1、-1 or 0
Utils::differenceInDays Get the number of full days between two given dates
Utils::differenceInHours Get the number of hours between two given dates
Utils::differenceInCalendarDays Get the number of calendar days between two given dates
Utils::differenceInCalendarMonths Get the number of calendar months between two given dates
Utils::differenceInCalendarQuarters Get the number of calendar quarters between two given dates
Utils::differenceInCalendarYears Get the number of calendar years between two given dates
Utils::getQuarter Return the order of the given date in current year
Utils::getMilliseconds Return the milliseconds of the given date
Utils::startOfDay Get the start date of the given date
Utils::subDays Subtract serveral days form the given date, then return the date after subtraction
Utils::subHours Subtract serveral hours form the given date, then return the date after subtraction
Utils::endOfDay Get the end date of the given date
Utils::endOfDecade Get the date which is the end date of current decade of the given date
Utils::endOfHour Get the date which is the end date of current hour of the given date
Utils::endOfMonth Get the date which is the end date of current month of the given date
Utils::endOfMinute Get the date which is the end date of current minute of the given date
Utils::endOfSecond Get the date which is the end date of current second of the given date
Utils::endOfWeek Get the date which is the end date of current week of the given date
Utils::endOfYear Get the date which is the end date of current year of the given date
Utils::endOfQuarter Get the date which is the end date of current quarter of the given date
Utils::isMonday Whether is Monday
Utils::isTuesday Whether is Tuesday
Utils::isWednesday Whether is Wednesday
Utils::isThursday Whether is Thursday
Utils::isFriday Whether is Friday
Utils::isSaturday Whether is Saturday
Utils::isSunday Whether is Sunday
Utils::isSameDay Whether is same between two given dates
Utils::isFirstDayOfMonth Whether is the first day of the month
Utils::isLastDayOfMonth Whether is the last day of the month

All versions of cp-date-fns with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.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 a2htray/cp-date-fns contains the following files

Loading the files please wait ...