tangled
alpha
login
or
join now
ciaran.co.za
/
option-result
0
fork
atom
Rust-style Option and Result Classes for PHP
0
fork
atom
overview
issues
pulls
pipelines
commits
Author
Commit
Message
Date
Ciaran
af86154e
feat(src/Option.php): implement Option::or with support for callables, update some other docs
v0.10.0
main
3mo ago
Ciaran
c64b2f53
refactor(src/Option.php): clean up Option return types, implementations, and docs
v0.9.0
3mo ago
Ciaran
b105bdeb
refactor(tests/OptionTest.php): remove tests for methods that won't be implemented
3mo ago
Ciaran
332ccdbf
feat(src/Option.php): add Option::takeIf with tests and docs to complete Option implementation
3mo ago
Ciaran
8dc76479
feat(src/Option.php): add Option::replace with tests and docs
3mo ago
Ciaran
9f4a8bac
feat(src/Option.php): add Option::reduce with tests and docs
3mo ago
Ciaran
a4adb843
feat(src/Option.php): add Option::inspect with tests and docs, updated filter types + docs
3mo ago
Ciaran
982b7665
feat(src/Option.php): add Option::filter with tests and docs
3mo ago
Ciaran
fa4c1cbf
chore(README.md): update todo list
3mo ago
Ciaran
af9b142a
chore(README.md): update todo list
3mo ago
Ciaran
2df7ebee
feat(tests): for Option methods: inspect, reduce, replace, take, takeIf; Result methods: inspect, inspectErr, or
3mo ago
Ciaran
bb9bcd2d
chore(README.md): tick off Result::and and Result::andThen
3mo ago
Ciaran
b6e22702
feat(src/Result.php): add Result::and and Result::andThen with docs and tests
v0.8.0
3mo ago
Ciaran
e4a27a61
feat(src): implement Option::expect, Result::expect and Result::expectErr with tests and docs
v0.7.0
3mo ago
Ciaran
2dc93c6a
feat(src/Option.php): add Option::andThen() with tests + docs
3mo ago
Ciaran
b27dca72
refactor(src/Option.php): replace Option with self
3mo ago
Ciaran
4e26c2c2
feat(src/Option.php): add Option::and() with tests + docs
3mo ago
Ciaran
3ad0f7b6
fix(README.md): type in code sample
v0.6.1
3mo ago
Ciaran
80d2d807
feat(Option, Result): add mapOr() method with tests
v0.6.0
3mo ago
Ciaran
d118a253
chore(README, src/Result): Fix install instruction, mapErr return type
3mo ago
Ciaran
f14c505e
feat(tests/ResultTest.php): add extra test cases for getOk/Err->unwrapOr
v0.5.1
3mo ago
Ciaran
f0196d59
refactor(src/Option.php): Some(null) creates a None type
v0.5.0
3mo ago
Ciaran
3068b216
fix(src): Merge Option::unwrapOr and Option::unwrapOrElse, allow lazy evaluation for Result::unwrapOr
v0.4.0
3mo ago
Ciaran
ae0c1abd
feat(README.md): snark
3mo ago
Ciaran
f051a08a
feat(LICENSE.md): add MIT License
v0.3.2
3mo ago
Ciaran
26ecfc7f
feat(docs): generate markdown documentation with phpdocumentor, update README examples and gitignore
3mo ago
knightspore
e35c3ff5
chore(*): lint with pint
v0.3.1
3mo ago
Ciaran
9e34ebeb
feat(.github/workflows/php.yml): add write permissions to lint committed code
3mo ago
Ciaran
4edd45d6
feat(Option, Result): add unwrapOrElse() method with tests
v0.3.0
3mo ago
Ciaran
95e031b5
feat(.github/workflows/php.yml): add linter + commit step to workflow
v0.2.1
3mo ago
Ciaran
b68b0a6b
chore(src, tests): lint
3mo ago
Ciaran
69935c3b
deps(composer): add pint + lint script
3mo ago
Ciaran
7ecfd6e4
refactor(tests): redo units based on Rust examples, with a few integration / edge case tests
3mo ago
Ciaran
74b56604
chore(README.md): update roadmap
3mo ago
Ciaran
752331cc
chore(README.md): todo
3mo ago
Ciaran
dc9cafc7
refactor(tests): cut down on test file size, update readme
3mo ago
Ciaran
cb5f488b
feat(Option, Result): add default value of true
v0.2.0
3mo ago
Ciaran
05e79e37
feat(.github/workflows/php.yml): split into build + test steps
v0.1.0
3mo ago
Ciarán
0157b640
refactor(.github/workflows/php.yml): add workflow_dispatch trigger
3mo ago
Ciarán
f8fe29d2
feat(.github/workflows/php.yaml): add testing and validation workflow
3mo ago
Ciaran
b7fe58b2
feat(README.md): basic readme
3mo ago
Ciaran
bf5d5121
feat(tests): ai generated / human reviewed unit tests
3mo ago
Ciaran
1959e306
chore(tests): setup test scaffolds
3mo ago
Ciaran
bbd546ec
deps(composer.json): add phpunit
3mo ago
Ciaran
a10baa14
feat(src): implement map for both, unwrap/Err/Or and mapErr for Result
3mo ago
Ciaran
6a1cbe43
feat(init): setup composer library with Option and Result
3mo ago
feat(src/Option.php): implement Option::or with support for callables, update some other docs
v0.10.0
main
af86154e
Ciaran
3mo
refactor(src/Option.php): clean up Option return types, implementations, and docs
v0.9.0
c64b2f53
Ciaran
3mo
refactor(tests/OptionTest.php): remove tests for methods that won't be implemented
b105bdeb
Ciaran
3mo
feat(src/Option.php): add Option::takeIf with tests and docs to complete Option implementation
332ccdbf
Ciaran
3mo
feat(src/Option.php): add Option::replace with tests and docs
8dc76479
Ciaran
3mo
feat(src/Option.php): add Option::reduce with tests and docs
9f4a8bac
Ciaran
3mo
feat(src/Option.php): add Option::inspect with tests and docs, updated filter types + docs
a4adb843
Ciaran
3mo
feat(src/Option.php): add Option::filter with tests and docs
982b7665
Ciaran
3mo
chore(README.md): update todo list
fa4c1cbf
Ciaran
3mo
chore(README.md): update todo list
af9b142a
Ciaran
3mo
feat(tests): for Option methods: inspect, reduce, replace, take, takeIf; Result methods: inspect, inspectErr, or
2df7ebee
Ciaran
3mo
chore(README.md): tick off Result::and and Result::andThen
bb9bcd2d
Ciaran
3mo
feat(src/Result.php): add Result::and and Result::andThen with docs and tests
v0.8.0
b6e22702
Ciaran
3mo
feat(src): implement Option::expect, Result::expect and Result::expectErr with tests and docs
v0.7.0
e4a27a61
Ciaran
3mo
feat(src/Option.php): add Option::andThen() with tests + docs
2dc93c6a
Ciaran
3mo
refactor(src/Option.php): replace Option with self
b27dca72
Ciaran
3mo
feat(src/Option.php): add Option::and() with tests + docs
4e26c2c2
Ciaran
3mo
fix(README.md): type in code sample
v0.6.1
3ad0f7b6
Ciaran
3mo
feat(Option, Result): add mapOr() method with tests
v0.6.0
80d2d807
Ciaran
3mo
chore(README, src/Result): Fix install instruction, mapErr return type
d118a253
Ciaran
3mo
feat(tests/ResultTest.php): add extra test cases for getOk/Err->unwrapOr
v0.5.1
f14c505e
Ciaran
3mo
refactor(src/Option.php): Some(null) creates a None type
v0.5.0
f0196d59
Ciaran
3mo
fix(src): Merge Option::unwrapOr and Option::unwrapOrElse, allow lazy evaluation for Result::unwrapOr
v0.4.0
3068b216
Ciaran
3mo
feat(README.md): snark
ae0c1abd
Ciaran
3mo
feat(LICENSE.md): add MIT License
v0.3.2
f051a08a
Ciaran
3mo
feat(docs): generate markdown documentation with phpdocumentor, update README examples and gitignore
26ecfc7f
Ciaran
3mo
chore(*): lint with pint
v0.3.1
e35c3ff5
knightspore
3mo
feat(.github/workflows/php.yml): add write permissions to lint committed code
9e34ebeb
Ciaran
3mo
feat(Option, Result): add unwrapOrElse() method with tests
v0.3.0
4edd45d6
Ciaran
3mo
feat(.github/workflows/php.yml): add linter + commit step to workflow
v0.2.1
95e031b5
Ciaran
3mo
chore(src, tests): lint
b68b0a6b
Ciaran
3mo
deps(composer): add pint + lint script
69935c3b
Ciaran
3mo
refactor(tests): redo units based on Rust examples, with a few integration / edge case tests
7ecfd6e4
Ciaran
3mo
chore(README.md): update roadmap
74b56604
Ciaran
3mo
chore(README.md): todo
752331cc
Ciaran
3mo
refactor(tests): cut down on test file size, update readme
dc9cafc7
Ciaran
3mo
feat(Option, Result): add default value of true
v0.2.0
cb5f488b
Ciaran
3mo
feat(.github/workflows/php.yml): split into build + test steps
v0.1.0
05e79e37
Ciaran
3mo
refactor(.github/workflows/php.yml): add workflow_dispatch trigger
0157b640
Ciarán
3mo
feat(.github/workflows/php.yaml): add testing and validation workflow
f8fe29d2
Ciarán
3mo
feat(README.md): basic readme
b7fe58b2
Ciaran
3mo
feat(tests): ai generated / human reviewed unit tests
bf5d5121
Ciaran
3mo
chore(tests): setup test scaffolds
1959e306
Ciaran
3mo
deps(composer.json): add phpunit
bbd546ec
Ciaran
3mo
feat(src): implement map for both, unwrap/Err/Or and mapErr for Result
a10baa14
Ciaran
3mo
feat(init): setup composer library with Option and Result
6a1cbe43
Ciaran
3mo