Download the PHP package joaomfrebelo/date without Composer
On this page you can find all versions of the php package joaomfrebelo/date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joaomfrebelo/date
More information about joaomfrebelo/date
Files in joaomfrebelo/date
Package date
Short Description A library that relays on the PHP DateTime class, but differs in the return types and add useful functions
License MIT
Homepage https://github.com/joaomfrebelo/Date
Informations about the package date
Rebelo\Date
This class relays on the DateTime class of php but change the return type for some methods and have more methods. Methods like add and sub return a new Object instead of change the instance itself. This class have methods like addDays, addMonths, addYears, addHours, etc
Example
Initiate an instance of \Rebelo\Date\Date
Get a formatted string
Add and Subtract Years
Set the Month
Install
Via Composer
License
MIT License Copyright (c) 2019 João M F Rebelo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.