PHPackages                             shortdark/socket - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. shortdark/socket

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shortdark/socket
================

Creates a date-based SVG graph from an array.

0.3.10(3y ago)169[1 issues](https://github.com/shortdark/socket/issues)LGPL-3.0-or-laterPHPPHP &gt;=8.0

Since Mar 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shortdark/socket)[ Packagist](https://packagist.org/packages/shortdark/socket)[ RSS](/packages/shortdark-socket/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (33)Used By (0)

Shortdark/Socket
================

[](#shortdarksocket)

Shortdark/Socket creates an SVG line graph from and array of up to 10 series of date-based data. This version currently assumes that the data will be from week days only, i.e. it expects not to have any data from weekends. Public holidays should be included in the array. Null values are not represented by a line, graph lines that contain null values will have gaps. More than 10 lines are possible on the graph if the extra line colors are specified manually.

Installation
------------

[](#installation)

```
$ composer require shortdark/socket
```

Basic Usage
-----------

[](#basic-usage)

```
