Skip to content

Commit 981b1ae

Browse files
committed
Added changelog
1 parent 1eb2da0 commit 981b1ae

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [2.0.0] - 2020-01-11
10+
### Added
11+
- Introduced Barcode and BarcodeBar classes to standardise generator output.
12+
- Introduced methods to force use of GD or Imagick, see readme.
13+
- Loads of new tests added, including tests on Github Actions.
14+
15+
### Changed
16+
- Splitted all barcode types to different files.
17+
- Refactored a lot of code for better readability, stricter checking, and to be more efficient.
18+
- Merged JPG and PNG generators, because of duplicate code.
19+
20+
### Fixed
21+
- Fixed a bug in Codabar generation 2d1128f5222d9368fc6151d2b51801ea29ba1052
22+
- Do not draw multiple bars on the same position #74
23+
- Do not try to draw barcodes for empty strings #42
24+
- Fixed possible casting issue in Codabar #92
25+
26+
## [0.4.0] - 2019-12-31
27+
### Added
28+
- Added support for PHP 7.4, thanks to @pilif #80
29+
30+
## [0.3.0] - 2019-01-12
31+
### Added
32+
- SVG: Add viewBox attribute to allow svg scaling #68 by @cuchac
33+
- Adjust CODE_128 to handle odd number of digits #55 by @richayles
34+
35+
### Fixed
36+
- Bugfix update imagick function #51 by @Keinbockwurst
37+
38+
## [0.2.2] - 2017-09-28
39+
### Added
40+
- Raising exceptions if we cannot generate JPG or PNG because of missing libraries. Thanks @OskarStark
41+
42+
## [0.2.1] - 2016-10-24
43+
### Fixed
44+
- Bugfixes for wrong constant values.
45+
46+
## [0.2.0] - 2016-05-14
47+
### Added
48+
- This release adds exceptions to this package. Now it is easier to detect if the generated barcode is correct or not.
49+
50+
## [0.1.0] - 2015-08-13
51+
### Added
52+
- Everything. First release of this package.

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ The `getBarcode()` method accepts the following parameters:
3838
- `$height` The total height of the barcode in pixels
3939
- `$foregroundColor` Hex code as string, or array of RGB, of the colors of the bars (the foreground color)
4040

41+
Example of usage of all parameters:
42+
4143
```php
4244
<?php
4345

@@ -98,8 +100,6 @@ Most used types are TYPE_CODE_128 and TYPE_CODE_39. Because of the best scanner
98100
## A note about PNG and JPG images
99101
If you want to use PNG or JPG images, you need to install [Imagick](https://www.php.net/manual/en/intro.imagick.php) or the [GD library](https://www.php.net/manual/en/intro.image.php). This package will use Imagick if that is installed, or fall back to GD. If you have both installed but you want a specific method, you can use `$generator->useGd()` or `$generator->useImagick()` to force your preference.
100102

101-
We use Imagick as standard because the size of the output is factor 10 smaller.
102-
103103
## Examples
104104

105105
### Embedded PNG image in HTML

0 commit comments

Comments
 (0)