Download the PHP package szymach/c-pchart without Composer

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

Table of contents:

Support:

This project is supported in a basic manner and no new features will be introduced. Issues and pull requests will be reviewed and resolved if need be, so feel free to post them.

Build status:

About:

This library is a port of the excellent pChart statistics library created by Jean-Damien Pogolotti, and aims to allow the usage of it in modern applications. This was done through applying PSR standards to code, introducing namespaces and typehints, along with some basic annotations to methods.

This is the 3.x version, which removes the factory service and reorganizes the file structure a bit. It does not introduce any new features, but the changes are not compatibile with the 2.x branch. BC compatibility with the original library is mostly retained, however you can still use the 1.x version if you cannot risk any of these.

What was done:

License:

It was previously stated that this package uses the MIT license, which did not meet the requirements set by the original author. It is now under the GNU GPL v3 license, so if you wish to use it in a commercial project, you need to pay an appropriate fee.

Contributing:

All in all, this is a legacy library ported over from PHP 4, so the code is neither beautiful nor easy to understand. I did my best to modernize and cover it with some basic tests, but there is much more that could be done. If you are willing and have time to fix or improve anything, feel free to post a PR or issue.

Installation (via Composer):

For composer installation, add:

to your composer.json file and update your dependencies. Or you can run:

in your project's root directory.

Usage:

Your best source to understanding how to use the library is still the official wiki. However, I have ported at least one example for each chart into Markdown files, so you can compare each version and figure out how to use the current implementation.

Charts created through Image class

Most of the basic charts are created through methods of the CpChart\Image class. Below you can find a full list of these charts, alongside example code.

Standalone charts:

The more advanced charts have their own separate class you need to use in order to create them. As before, below is a full list of these, with example code.

Barcodes

The pChart library also provides a way to render barcodes 39 and 128. Below you can find links to doc on creating them:

Cache

If you find yourself creating charts out of a set of data more than once, you may consider using the cache component of the library. Head on to the dedicated part of the documentation for information on how to do that.

Fonts and palletes

If you want to use any of the fonts or palletes files, provide only the name of the actual file, do not add the fonts or palettes folder to the string given into the function. If you want to load them from a different directory than the default, you need to add the full path to the file (ex. __DIR__.'/folder/to/my/palletes).

References

The original pChart website

Links

GitHub

Packagist


All versions of c-pchart with dependencies

PHP Build Version
Package Version
Requires php Version ^5.4|^7.0|^8.0
ext-gd 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 szymach/c-pchart contains the following files

Loading the files please wait ....