Download the PHP package zyan/stock-generate without Composer

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

English Documentation for zyan/stock-generate

English | 中文

Overview

The zyan/stock-generate package is designed to simulate and generate stock data based on configurable parameters. It allows developers to create realistic stock price movements, including limit up (price increase cap), limit down (price decrease cap), and normal fluctuations.


Requirements

  1. PHP version >= 7.4
  2. Composer version 2.x

Installation

To install the package via Composer, run the following command in your terminal:


Usage

Below is an example of how to use the StockGenerate class to simulate stock data:


Key Features

  1. Customizable Parameters:

    • Define stock symbol, name, start/end dates, initial price, and probability percentages.
    • Configure limit up/down percentages and maximum consecutive limit up/down days.
  2. Holiday and Weekend Handling:

    • The generator automatically skips weekends and holidays defined in the holidays array.
  3. Random Price Fluctuations:

    • Simulates daily price changes based on random probabilities within specified limits.
  4. Output Format:
    • Generates a list of daily stock data, including date, price, change amount, and percentage change.

Example Output

Here’s an example of the generated stock data:


Contributing

  1. Fork the repository to your account.
  2. Make your changes locally, review them, and push to your forked repository.
  3. Submit a Pull Request (PR) with a description of your changes, and wait for it to be reviewed and merged.

License

This package is released under the MIT License. See the LICENSE file for more details.


Let me know if you need further adjustments or additional sections!


All versions of stock-generate with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json 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 zyan/stock-generate contains the following files

Loading the files please wait ....