ghostwriter/option
Provides an Option type implementation for PHP
2.0.0
5.2M downloads/mo
#1674 most downloaded on Packagist
ghostwriter/option
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 5 weeks to 1.6 years
Most releases are documented
notes for 10 of 12 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
12 releases · first in 2022
0 releases in the last 12 months
see the full history below
Release timeline
12 releases · May 2022 to Feb 2025Releases
latest 12-
2.0.006 Feb 2025Release notes
Open source →Added
- Class
Ghostwriter\Option\Exception\NullPointerException - Class
Ghostwriter\Option\Exception\ShouldNotHappenException - Interface
Ghostwriter\Option\Interface\ExceptionInterface - Interface
Ghostwriter\Option\Interface\NoneInterface - Interface
Ghostwriter\Option\Interface\OptionInterface - Interface
Ghostwriter\Option\Interface\SomeInterface - Method
Ghostwriter\Option\None::new() - Method
Ghostwriter\Option\Option::new() - Method
Ghostwriter\Option\Some::new()
Removed
- Class
Ghostwriter\Option\AbstractOptionwas removed - Class
Ghostwriter\Option\Exception\OptionExceptionwas removed - Interface
Ghostwriter\Option\Exception\OptionExceptionInterfacewas removed - Interface
Ghostwriter\Option\NoneInterfacewas removed - Interface
Ghostwriter\Option\OptionInterfacewas removed - Interface
Ghostwriter\Option\SomeInterfacewas removed - Method
Ghostwriter\Option\None::create()was removed - Method
Ghostwriter\Option\Option::create()was removed - Method
Ghostwriter\Option\Some::create()was removed
- Class
-
1.5.105 Jul 2023Release notes
Open source →What's Changed
- Update README.md by @ghostwriter in #40
- Lock file maintenance by @ghostwriter in #41
Noneshould returnnevernotnullby @mathroc and @ghostwriter in #42
Full Changelog: 1.5.0...1.5.1
-
1.5.025 Apr 2023Release notes
Open source →What's Changed
- Add Codecov GitHub Action by @ghostwriter in #32
- Add Codecov badge by @ghostwriter in #33
- Bump
actions/checkoutfrom 2 to 3 by @ghostwriter in #35 - Refactor using Option class by @ghostwriter in #36
- Bump
phpunitto 10.1 by @ghostwriter in #37 - Lock file maintenance by @ghostwriter in #38
- Clean up by @ghostwriter in #39
Full Changelog: 1.4.0...1.5.0
-
1.4.021 Mar 2023Release notes
Open source →What's Changed
- Lock file maintenance by @ghostwriter in #26
- Update phpunit.xml.dist by @ghostwriter in #27
- Update psalm.xml.dist by @ghostwriter in #28
- chore/update tests by @ghostwriter in #29
- Lock file maintenance by @ghostwriter in #30
- Feature: Iterate over an iterable by @ghostwriter in #31
Full Changelog: 1.3.0...1.4.0
-
1.3.017 Jan 2023Release notes
Open source →What's Changed
- Fix a typo in README.md by @sanmai in #18
- Update composer dependencies by @ghostwriter in #19
- Lock file maintenance by @ghostwriter in #20
- Lock file maintenance by @ghostwriter in #21
- Add coding-standard by @ghostwriter in #22
- Update rector by @ghostwriter in #23
- Lock file maintenance by @ghostwriter in #24
- Drop PHP 8.0 by @ghostwriter in #25
New Contributors
Full Changelog: 1.2.0...1.3.0
-
1.2.002 Dec 2022Release notes
Open source → -
1.1.002 Dec 2022Release notes
Open source →What's Changed
- Bump composer dependencies by @ghostwriter in #15
- Update composer dependencies by @ghostwriter in #16
Full Changelog: 1.0.1...1.1.0
-
1.0.104 Oct 2022Release notes
Open source → -
1.0.029 Sep 2022 -
0.3.004 Aug 2022Release notes
Open source → -
0.2.002 Aug 2022Nothing published for this version
-
0.1.019 May 2022Nothing published for this version