Download the PHP package academe/php-finance without Composer
On this page you can find all versions of the php package academe/php-finance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download academe/php-finance
More information about academe/php-finance
Files in academe/php-finance
Download academe/php-finance
More information about academe/php-finance
Files in academe/php-finance
Vendor academe
Package php-finance
Short Description A PHP library for financial calculations. Complete port of pyfinance with statistical analysis, options pricing, and portfolio management.
License MIT
Package php-finance
Short Description A PHP library for financial calculations. Complete port of pyfinance with statistical analysis, options pricing, and portfolio management.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-finance
PHP Finance
A comprehensive PHP port of the pyfinance library for quantitative finance and investment analysis.
Features
- Time Series Analysis: Statistical analysis of financial returns with TSeries class
- Options Pricing: Black-Scholes-Merton option valuation with Greeks calculation
- Regression Analysis: OLS regression with rolling window capabilities
- Financial Data: Fetch data from Fama-French, FRED, Yahoo Finance, and more
- Risk Metrics: VaR, CVaR, Sharpe ratio, maximum drawdown, and other risk measures
- Portfolio Analytics: Active share, tracking error, information ratio
Installation
Install via Composer:
Quick Start
Time Series Analysis
Options Pricing
Regression Analysis
Financial Data
Risk and Performance Metrics
Advanced Examples
Multi-Factor Regression
Option Strategy Analysis
Testing
Run tests with Pest:
Run static analysis:
Requirements
- PHP >= 8.3
- ext-json
- PSR-18 HTTP Client implementation
- PSR-17 HTTP Message Factory implementation
- PSR-6 Cache implementation (optional)
- markrogoyski/math-php
PSR Compatibility
This library uses PSR standards for maximum flexibility:
- PSR-18: HTTP Client for data fetching
- PSR-17: HTTP Message Factory for creating requests
- PSR-6: Cache for improved performance (optional)
You can use any compatible implementation. Popular choices include:
- HTTP Client: Guzzle, Symfony HTTP Client, Buzz
- PSR-7/17: guzzlehttp/psr7, nyholm/psr7, laminas/laminas-diactoros
- Cache: Symfony Cache, doctrine/cache, cache/cache
Documentation
For detailed documentation, see the Wiki or explore the source code.
License
MIT License
Contributing
Contributions are welcome! Please submit pull requests or open issues on GitHub.
All versions of php-finance with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/cache Version ^3.0
markrogoyski/math-php Version ^2.0
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/cache Version ^3.0
markrogoyski/math-php Version ^2.0
The package academe/php-finance contains the following files
Loading the files please wait ....