Download the PHP package fundevogel/tiny-phpeanuts without Composer

On this page you can find all versions of the php package fundevogel/tiny-phpeanuts. 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 tiny-phpeanuts

tiny-phpeanuts

Release License Issues Status

A tiny PHP library for creating SVG donut (and pie) charts.

What

This library is a PHP port of the TypeScript library tiny-donuts.

Why

We needed Donut charts - however, Chart.js was a much too powerful (and big) for our use case and added >200kb to our browser application.

So we wrote this small library with a minified size of 4 KiB.

While tiny-donuts is a great library, we needed something less client-side and more server-side.

So we ported their library to PHP.

How

Install this package with Composer:

Configuration

The Donut class takes three parameters:

Parameter Type Default Description
$entries array - data to be visualized
$thickness float see below thickness of the chart
$spacing float see below spacing between the segments

Options

.. and there's even more! Check out these 'global' options:

Setter Type Default Description
setSize int 100 dimensions of chart
setBackgroundColor string 'transparent' background fill color
setPreferViewbox bool true viewBox > width & height
setClasses string '' classes applied to chart
setRole string 'img' role attribute
setPieChart bool false make it a pie chart

Example

.. looks like this:

.. and with setPieChart(true):

FAQ

Will there be more charts in the future?

PRs welcome, beyond that .. no.

Are you sure?

Yes! If you are looking for something more serious, have a look at easychart.

Roadmap

Credits

This project is based on the TypeScript library tiny-donuts by Kim Almasan & Lars Krumbier. The helper functions (see lib/helpers) were taken from Kirby by Bastian Allgeier (both the project and its founder are just awesome, btw).

Happy coding!

:copyright: Fundevogel Kinder- und Jugendbuchhandlung


All versions of tiny-phpeanuts with dependencies

PHP Build Version
Package Version
Requires meyfa/php-svg Version ^0.10.0
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 fundevogel/tiny-phpeanuts contains the following files

Loading the files please wait ....