PHP Classes

PHP Business Days: API to retrieve information about business days

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 66 All time: 10,366 This week: 206Up
Version License PHP version Categories
businessdate 1.0The PHP License5PHP 5, Time and Date, Web services
Description 

Author

This package provides an API to retrieve information about business days.

It provides an application that is served as an API that clients can send HTTP requests to retrieve information about the dates of the days that businesses are working on.

Currently it provides several API functions to:

- Check if a given date is of a business day
- Get the business days between two dates

Innovation Award
PHP Programming Innovation award nominee
September 2021
Number 8
Many applications need to schedule dates according to the expected number of days a task needs to finish.

For instance, when a site takes e-commerce orders, it is ideal for estimating the number of business days that the order will take to be delivered.

This class provides an API for returning details of business days that give realistic estimates of final delivery dates for a task to be completed considering the days that are not business days.

Manuel Lemos
Picture of Edward Paul
  Performance   Level  
Name: Edward Paul is available for providing paid consulting. Contact Edward Paul .
Classes: 18 packages by
Country: Nigeria Nigeria
Age: 33
All time rank: 271118 in Nigeria Nigeria
Week rank: 200 Up6 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

Documentation

<p align="center">Business Date</p> <p align="center"><a href="#">Creator</a> | I Craft Ideas Into Realities</p>

<p>&nbsp;</p>

Download Instruction

> Application Requirements * PHP >= 7.1.3 * OpenSSL PHP Extension * PDO PHP Extension * Mbstring PHP Extension

  1. Clone the project.
git clone https://github.com/infinitypaul/businessdate.git projectname

  1. Install dependencies via composer.
composer install 

  1. Run php server.
php artisan serve

<p>&nbsp;</p>

> You can also install the Application via Docker:

Pre-requisites

  • Docker running on the host machine.
  • Docker compose running on the host machine.
  1. Clone the project.
git clone https://github.com/infinitypaul/businessdate.git projectname

  1. Run the testrig.sh file on the Project Root Folder on your terminal/Command Prompt, This script does everything you need to run your this project. It starts up the servers, ensures the database is booted, installs dependencies. These services are exposed to your computer on the standard ports, then you can access your website on http:localhost

Troubleshooting

  • Port number might be already in use, change from `80` to another number in your `docker-compose.yml` file.
  • If you have any other issues, report them.

Enjoy!

Api Usage

> Using Get Request:

GET http://localhost/api/v1/businessDates/getBusinessDateWithDelay/<INITIAL DATE>/<DELAY>

> Using Post Request:

POST http://localhost/api/v1/businessDates/getBusinessDateWithDelay/

Where: * http://localhost/ is your Base Url, You Can Replace it with yours * INITIAL DATE, DELAY are variables that are used when calling the Date API. Example values for these are: * INITIAL DATE: 2018-5-14T10:10:10Z DELAY: 3

> Is Business Day:

Check if a date is a business date

GET http://localhost/api/v1/businessDates/isBusinessDay/<DATE>

License

The Find Your Service App is open-sourced software licensed under the MIT license


  Files folder image Files (82)  
File Role Description
Files folder image.scripts (1 file)
Files folder imageapp (1 file, 5 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (13 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files, 2 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file testrig.sh Data Auxiliary data
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

  Files folder image Files (82)  /  .scripts  
File Role Description
  Accessible without login Plain text file composer.sh Data Auxiliary data

  Files folder image Files (82)  /  app  
File Role Description
Files folder imageConsole (1 file)
Files folder imageExceptions (1 file)
Files folder imageHttp (1 file, 3 directories)
Files folder imageProviders (5 files)
Files folder imageServices (1 file)
  Plain text file User.php Class Class source

  Files folder image Files (82)  /  app  /  Console  
File Role Description
  Plain text file Kernel.php Class Class source

  Files folder image Files (82)  /  app  /  Exceptions  
File Role Description
  Plain text file Handler.php Class Class source

  Files folder image Files (82)  /  app  /  Http  
File Role Description
Files folder imageControllers (2 files, 1 directory)
Files folder imageMiddleware (7 files)
Files folder imageResources (1 file)
  Plain text file Kernel.php Class Class source

  Files folder image Files (82)  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageAuth (5 files)
  Plain text file Controller.php Class Class source
  Plain text file SettlementController.php Class Class source

  Files folder image Files (82)  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
  Plain text file ForgotPasswordController.php Class Class source
  Plain text file LoginController.php Class Class source
  Plain text file RegisterController.php Class Class source
  Plain text file ResetPasswordController.php Class Class source
  Plain text file VerificationController.php Class Class source

  Files folder image Files (82)  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file CheckForMaintenanceMode.php Class Class source
  Plain text file EncryptCookies.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files (82)  /  app  /  Http  /  Resources  
File Role Description
  Plain text file SettlementTransferResource.php Class Class source

  Files folder image Files (82)  /  app  /  Providers  
File Role Description
  Plain text file AppServiceProvider.php Class Class source
  Plain text file AuthServiceProvider.php Class Class source
  Plain text file BroadcastServiceProvider.php Class Class source
  Plain text file EventServiceProvider.php Class Class source
  Plain text file RouteServiceProvider.php Class Class source

  Files folder image Files (82)  /  app  /  Services  
File Role Description
  Plain text file Settlement.php Class Class source

  Files folder image Files (82)  /  bootstrap  
File Role Description
  Plain text file app.php Class Class source

  Files folder image Files (82)  /  config  
File Role Description
  Plain text file app.php Class Class source
  Plain text file auth.php Class Class source
  Accessible without login Plain text file broadcasting.php Aux. Auxiliary script
  Accessible without login Plain text file cache.php Aux. Auxiliary script
  Accessible without login Plain text file database.php Aux. Auxiliary script
  Accessible without login Plain text file filesystems.php Aux. Auxiliary script
  Accessible without login Plain text file hashing.php Aux. Auxiliary script
  Plain text file logging.php Class Class source
  Accessible without login Plain text file mail.php Aux. Auxiliary script
  Accessible without login Plain text file queue.php Aux. Auxiliary script
  Plain text file services.php Class Class source
  Accessible without login Plain text file session.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files (82)  /  database  
File Role Description
Files folder imagefactories (1 file)
Files folder imagemigrations (2 files)
Files folder imageseeds (1 file)

  Files folder image Files (82)  /  database  /  factories  
File Role Description
  Plain text file UserFactory.php Class Class source

  Files folder image Files (82)  /  database  /  migrations  
File Role Description
  Plain text file 2014_10_12_000000_create_users_table.php Class Class source
  Plain text file 2014_10_12_100000_...rd_resets_table.php Class Class source

  Files folder image Files (82)  /  database  /  seeds  
File Role Description
  Plain text file DatabaseSeeder.php Class Class source

  Files folder image Files (82)  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file index.php Class Class source
  Accessible without login Plain text file robots.txt Doc. Documentation
  Accessible without login Plain text file web.config Data Auxiliary data

  Files folder image Files (82)  /  public  /  css  
File Role Description
  Accessible without login Plain text file app.css Data Auxiliary data

  Files folder image Files (82)  /  public  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data

  Files folder image Files (82)  /  resources  
File Role Description
Files folder imagejs (2 files, 1 directory)
Files folder imagelang (1 directory)
Files folder imagesass (2 files)
Files folder imageviews (1 file)

  Files folder image Files (82)  /  resources  /  js  
File Role Description
Files folder imagecomponents (1 file)
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data

  Files folder image Files (82)  /  resources  /  js  /  components  
File Role Description
  Accessible without login Plain text file ExampleComponent.vue Data Auxiliary data

  Files folder image Files (82)  /  resources  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files (82)  /  resources  /  lang  /  en  
File Role Description
  Accessible without login Plain text file auth.php Aux. Auxiliary script
  Accessible without login Plain text file pagination.php Aux. Auxiliary script
  Accessible without login Plain text file passwords.php Aux. Auxiliary script
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files (82)  /  resources  /  sass  
File Role Description
  Accessible without login Plain text file app.scss Data Auxiliary data
  Accessible without login Plain text file _variables.scss Data Auxiliary data

  Files folder image Files (82)  /  resources  /  views  
File Role Description
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files (82)  /  routes  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Accessible without login Plain text file channels.php Example Example script
  Accessible without login Plain text file console.php Example Example script
  Accessible without login Plain text file web.php Aux. Auxiliary script

  Files folder image Files (82)  /  tests  
File Role Description
Files folder imageFeature (1 file)
Files folder imageUnit (2 files)
  Plain text file CreatesApplication.php Class Class source
  Plain text file TestCase.php Class Class source

  Files folder image Files (82)  /  tests  /  Feature  
File Role Description
  Plain text file ExampleTest.php Class Class source

  Files folder image Files (82)  /  tests  /  Unit  
File Role Description
  Plain text file ExampleTest.php Class Class source
  Plain text file SettlementTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:66
This week:0
All time:10,366
This week:206Up