Download the PHP package claufersus/holidays without Composer

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

��# Holidays @Claufersus

## About Holidays

###### Package for generating Holidays for a given year

Pacote para gera��o de Feriados de um determinado ano

### Highlights

##### Feriados, que aparecem no calend�rio convencional:

- Confraterniza��o Universal

- Tiradentes,

- Dia do Trabalhador

- Dia das m�es

- Revolu��o Constitucionalista de 1932  S�o Paulo

- Dia dos pais

- Dia da Independ�ncia

- N. S. Aparecida

- Todos os santos

- Proclama��o da rep�blica

- Natal

##### Datas m�veis e que dependem da p�scoa!

- Carnaval (Ponto Facultativo)

- Quarta-feira de cinzas

- Paix�o de Cristo

- P�scoa

- Corpus Christ

## Installation

Holidays is available via Composer:

`bash

"composer require claufersus/holidays"

`

## Documentation

###### For more details on using holiday, see an example folder in the component directory. In it will have an example of the use of the class. Clausfersus Holiday works like this:

Para mais detalhes sobre como usar holiday, veja uma pasta de exemplo no diret�rio do componente. Nela ter� um exemplo de uso da classe. Claufersus Holiday funciona assim:

### Show Holidays

![show-holidays-demo](https://raw.githubusercontent.com/claudinei-ferreira/holidays/master/example/img/show-holidays-default.png)

`php

require DIR . "/vendor/autoload.php";

use claufersus\Holiday;

/ SHOW HOLIDAYS OF THE YEAR 2021 AND MONTH JANUARY => 1 */

$year = 2021;

$month = 1;

$holiday = new Holiday($year, $month);

$holidays = $holiday->getHolidays();

if(!empty($holidays)){

echo "<h1> January - {$year} </h1>";

echo "<p>Holidays default of the class Holiday</p>";

foreach($holidays as $holiday){

echo "{$holiday->date} - {$holiday->name} <br>";

}

}

`

### Add news Holidays

##### By default the Holiday class returns some holidays and commemorative dates. But if you want to send other holidays or celebrations use the following method:

Por padr�o a classe Holiday retorna alguns feriados e datas comemorativas. Mas se voc� desejar enviar outros feriados ou comemora��es utilize o m�todo a seguir:

![show-holidays-demo](https://raw.githubusercontent.com/claudinei-ferreira/holidays/master/example/img/show-holidays-of-the-year-and-add-holidays-custom.jpg)

`php

<?php

require DIR . "/vendor/autoload.php";

use claufersus\Holiday;

/ SHOW HOLIDAYS OF THE YEAR 2021 AND MONTH JANUARY => 1 */

$year = 2021;

$month = 1;

/ INCLUDE HOLIDAYS OF THE YOUR PREFERENCE

* HOLIDAYS MUST BE SENT AN OBJECT WITH THE FOLLOWING FORMAT:

* DATE => month-day

* NAME => The Name Of Holiday

*/

$holidaysCustom = [

['date' => '01-02','name' => 'Dia do Sanitarista'],

['date' => '01-03','name' => 'Dia do Juiz de Menores'],

['date' => '01-03','name' => 'Dia Mundial do Braille'],

['date' => '02-14','name' => 'Dia de S�o Valentim'],

['date' => '06-05','name' => 'Dia mundial do meio ambiente'],

['date' => '06-12','name' => 'Dia dos namorados'],

];

$holidaysCustom = jsondecode(jsonencode((object) $holidaysCustom), FALSE);

$months = [1=>'Janeiro',2=>'Fevereiro',3=>'Mar�o',4=>'Abril',5=>'Maio',6=>'Junnho',7=>'Julho',8=>'Agosto',9=>'Setembro',10=>'Outubro',11=>'Novembro',12=>'Dezembro'];

for($i=1; $i <= 12; $i++){

echo "<h1>Feriados de {$months[$i]} - {$year} </h1>";

$holiday = new Holiday($year, $i);

$holiday->includeHolidays($holidaysCustom);

$holidays= $holiday->getHolidays();

if(!empty($holidays)){

foreach($holidays as $holiday){

echo date('d/m/Y', strtotime($holiday->date)) . " - " . $holiday->name . "<br>";

}

}else{

echo "N�o h� feriados para o m�s informado";

}

}

`

## Support

###### Security: If you discover any security related issues, please email claufersus@gmail.com instead of using the issue tracker.

Se voc� descobrir algum problema relacionado � seguran�a, envie um e-mail para claufersus@gmail.com em vez de usar o rastreador de problemas.

Thank you

## Credits

- [Claudinei Ferreira de Jesus](https://github.com/claudinei-ferreira) (Developer)

## License

The MIT License (MIT). Please see [License File](https://github.com/claudinei-ferreira/holidays/blob/master/LICENSE) for more information.


All versions of holidays with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-gd Version *
ext-mbstring Version *
ext-exif Version *
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 claufersus/holidays contains the following files

Loading the files please wait ....