Download the PHP package soandso/continental-index without Composer
On this page you can find all versions of the php package soandso/continental-index. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download soandso/continental-index
More information about soandso/continental-index
Files in soandso/continental-index
Package continental-index
Short Description Library for calculating the index of continentality - a numerical characteristic of continental climate
License GPL-2.0-or-later
Informations about the package continental-index
Continental index
PHP library for calculating the index of continentality - a numerical characteristic of continental climate.
Requirements
This library only requires PHP >= 7.4
Setup
Add the library to your composer.json file in your project:
Use composer to install the library:
Composer will install synop decoder library inside your vendor folder. Then you can add the following to your .php files to use the library with Autoloading.
You can also use composer on the command line to require and install Grouping:
Usage
Instantiate the class with initialization data.
To get the calculation of the continentality index, use the method
Plotting
You can build a line graph of continentality index versus time for a given location. To do this, you need to use the method of the class, passing it the calculated data that were obtained using (see above)
The method also takes as its second optional argument options for plotting.
Example usage
Index calculation
Plotting
Specifying Custom Graph Options
Credits
Dygraphs - open source JavaScript charting library. (https://dygraphs.com)
Standards
Continental index conforms to the following standards:
- PSR-2 - Basic coding standard (https://www.php-fig.org/psr/psr-2/)
- PSR-4 - Autoloader (https://www.php-fig.org/psr/psr-4/)
- PSR-12 - Extended coding style guide (https://www.php-fig.org/psr/psr-12/)
License
Grouping is licensed under the GPLv2 License (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).