Skip to content

Commit 7ee48f8

Browse files
committed
Change license to MIT
1 parent 2e8a010 commit 7ee48f8

40 files changed

+24
-180
lines changed

LICENSE

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2-
Version 2, December 2004
1+
The MIT License (MIT)
32

4-
Copyright (C) 2004 Sam Hocevar <[email protected]>
3+
Copyright (c) 2024 Willem Stuursma-Ruwen
54

6-
Everyone is permitted to copy and distribute verbatim or modified
7-
copies of this license document, and changing it is allowed as long
8-
as the name is changed.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
911

10-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12-
13-
0. You just DO WHAT THE FUCK YOU WANT TO.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1414

15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
**[Installation](#installation)** |
33
**[Usage](#usage)** |
44
**[License and authors](#license-and-authors)** |
5-
**[Donations](#donations)**
65

76
# php-lock/lock
87

@@ -20,7 +19,7 @@ php-lock/lock follows semantic versioning. Read more on [semver.org][1].
2019

2120
## Requirements
2221

23-
- PHP 7.1 or above
22+
- PHP 7.2 or above
2423
- Optionally [nrk/predis][2] to use the Predis locks.
2524
- Optionally the [php-pcntl][3] extension to enable locking with `flock()`
2625
without busy waiting in CLI scripts.
@@ -41,7 +40,7 @@ To use this library through [composer][4], run the following terminal command
4140
inside your repository's root folder.
4241

4342
```sh
44-
composer require "malkusch/lock"
43+
composer require malkusch/lock
4544
```
4645

4746
## Usage
@@ -397,13 +396,9 @@ $mutex->synchronized(function () use ($bankAccount, $amount) {
397396

398397
## License and authors
399398

400-
This project is free and under the WTFPL.
401-
Responsible for this project is Willem Stuursma-Ruwen <[email protected]>.
402-
403-
## Donations
399+
This project is free and under the MIT.
404400

405-
If you like this project and feel generous donate a few Bitcoins here:
406-
[1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA](bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA)
401+
Responsible for this project is Willem Stuursma-Ruwen <[email protected]>.
407402

408403
[1]: http://semver.org
409404
[2]: https://github.com/nrk/predis

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"name": "malkusch/lock",
33
"description": "Mutex library for exclusive code execution.",
4+
"license": "MIT",
5+
"type": "library",
46
"keywords": [
57
"mutex",
68
"lock",
@@ -15,9 +17,6 @@
1517
"mysql",
1618
"postgresql"
1719
],
18-
"homepage": "https://github.com/malkusch/lock",
19-
"license": "WTFPL",
20-
"type": "library",
2120
"authors": [
2221
{
2322
"name": "Markus Malkusch",
@@ -31,6 +30,7 @@
3130
"role": "Developer"
3231
}
3332
],
33+
"homepage": "https://github.com/malkusch/lock",
3434
"autoload": {
3535
"psr-4": {
3636
"malkusch\\lock\\": "src/"

src/exception/DeadlineException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
/**
1010
* Deadline exception.
11-
*
12-
* @author Willem Stuursma-Ruwen <[email protected]>
13-
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
14-
* @license WTFPL
1511
*/
1612
class DeadlineException extends RuntimeException implements PhpLockException
1713
{

src/exception/ExecutionOutsideLockException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* Should only be used in contexts where the is being released.
1616
*
1717
* @see \malkusch\lock\mutex\SpinlockMutex::unlock()
18-
*
19-
* @author Petr Levtonov <[email protected]>
20-
* @license WTFPL
2118
*/
2219
class ExecutionOutsideLockException extends LockReleaseException
2320
{

src/exception/LockAcquireException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
*
1010
* Used when the lock could not be acquired. This exception implies that the
1111
* critical code was not executed, or at least had no side effects.
12-
*
13-
* @author Markus Malkusch <[email protected]>
14-
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
15-
* @license WTFPL
1612
*/
1713
class LockAcquireException extends MutexException
1814
{

src/exception/LockReleaseException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
* Failed to release the lock. Take this exception very serious. Failing to
1313
* release a lock might have the potential to introduce deadlocks. Also the
1414
* critical code was executed i.e. side effects may have happened.
15-
*
16-
* @author Markus Malkusch <[email protected]>
17-
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
18-
* @license WTFPL
1915
*/
2016
class LockReleaseException extends MutexException
2117
{

src/exception/MutexException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
*
1212
* Generic exception for any other not covered reason. Usually extended by
1313
* child classes.
14-
*
15-
* @author Markus Malkusch <[email protected]>
16-
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
17-
* @license WTFPL
1814
*/
1915
class MutexException extends RuntimeException implements PhpLockException
2016
{

src/exception/PhpLockException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
/**
88
* Common php-lock/lock exception interface.
99
*
10-
* @author Petr Levtonov <[email protected]>
11-
* @license WTFPL
12-
*
1310
* @method string getMessage()
1411
* @method int getCode()
1512
* @method string getFile()

src/exception/TimeoutException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
*
1010
* A timeout has been exceeded exception. Should only be used in contexts where
1111
* the lock is being acquired.
12-
*
13-
* @author Markus Malkusch <[email protected]>
14-
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
15-
* @license WTFPL
1612
*/
1713
class TimeoutException extends LockAcquireException
1814
{

0 commit comments

Comments
 (0)