Skip to content

Commit

Permalink
Merge pull request #13 from wotzebra/feature/change-namespace-from-ne…
Browse files Browse the repository at this point in the history
…xtapps-to-wotz

Change namespace from 'NextApps' to 'Wotz'
  • Loading branch information
gdebrauwer authored Sep 26, 2024
2 parents 4efb470 + 5fbc7af commit 16037e4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 31 deletions.
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ All notable changes to `unique-codes` will be documented in this file

## 2.3.2 - 2024-05-13

- Fixed: Implicit conversion deprecation warning when converting float to int ([#ebd6914](https://github.com/nextapps-be/unique-codes/commit/ebd6914f7bf1c843a9cf5ab888e454503400db22))
- Fixed: Implicit conversion deprecation warning when converting float to int ([#ebd6914](https://github.com/wotzebra/unique-codes/commit/ebd6914f7bf1c843a9cf5ab888e454503400db22))

## 2.3.1 - 2024-05-13

- Fixed: Implicit conversion deprecation warning when converting float to int ([#12](https://github.com/nextapps-be/unique-codes/pull/12))
- Fixed: Implicit conversion deprecation warning when converting float to int ([#12](https://github.com/wotzebra/unique-codes/pull/12))

## 2.3.0 - 2023-12-15

- Added: PHP 8.3 support ([#11](https://github.com/nextapps-be/unique-codes/pull/11))
- Added: PHP 8.3 support ([#11](https://github.com/wotzebra/unique-codes/pull/11))

## 2.2.0 - 2023-02-19

- Add PHP 8.2 support ([#10](https://github.com/nextapps-be/unique-codes/pull/10))
- Add PHP 8.2 support ([#10](https://github.com/wotzebra/unique-codes/pull/10))

## 2.1.0 - 2022-02-24

- Add PHP 8.1 support ([#7](https://github.com/nextapps-be/unique-codes/pull/7))
- Add PHP 8.1 support ([#7](https://github.com/wotzebra/unique-codes/pull/7))

## 2.0.0 - 2021-02-03

- Fixed bugs that could cause duplicate code generation (and added more tests) ([#3](https://github.com/nextapps-be/unique-codes/pull/3), [#4](https://github.com/nextapps-be/unique-codes/pull/4))
- Fixed bugs that could cause duplicate code generation (and added more tests) ([#3](https://github.com/wotzebra/unique-codes/pull/3), [#4](https://github.com/wotzebra/unique-codes/pull/4))

## 1.1.0 - 2021-01-19

- Add PHP 8 support and switch to Github actions ([#1](https://github.com/nextapps-be/unique-codes/pull/1))
- Add PHP 8 support and switch to Github actions ([#1](https://github.com/wotzebra/unique-codes/pull/1))

## 1.0.0 - 2020-04-19

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Unique Codes

[![Latest Version on Packagist](https://img.shields.io/packagist/v/nextapps/unique-codes.svg?style=flat-square)](https://packagist.org/packages/nextapps/unique-codes)
[![Total Downloads](https://img.shields.io/packagist/dt/nextapps/unique-codes.svg?style=flat-square)](https://packagist.org/packages/nextapps/unique-codes)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/wotz/unique-codes.svg?style=flat-square)](https://packagist.org/packages/wotz/unique-codes)
[![Total Downloads](https://img.shields.io/packagist/dt/wotz/unique-codes.svg?style=flat-square)](https://packagist.org/packages/wotz/unique-codes)

This package generates unique, random-looking codes. These codes can be used for vouchers, coupons, ...
You can now generate thousands or millions of codes without having to check if a code has already been generated in the past.

``` php
use NextApps\UniqueCodes\UniqueCodes;
use Wotz\UniqueCodes\UniqueCodes;

// Generate 100 unique codes for numbers 1 to 100
$codes = (new UniqueCodes())
Expand All @@ -25,7 +25,7 @@ $codes = (new UniqueCodes())
You can install the package via composer:

```bash
composer require nextapps/unique-codes
composer require wotz/unique-codes
```
> Do not use v1 of this package, as it contains bugs. If you currently use v1, you should upgrade to v2 (Read the upgrading guide!).
Expand Down Expand Up @@ -128,7 +128,6 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits

- [Günther Debrauwer](https://github.com/gdebrauwer)
- [Evert Arnould](https://github.com/earnould)
- [All Contributors](../../contributors)

This package is heavily inspired by 2 articles written by Jim Mischel:
Expand Down
24 changes: 8 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
{
"name": "nextapps/unique-codes",
"name": "wotz/unique-codes",
"description": "Generate unique, random-looking codes",
"keywords": [
"nextapps",
"unique-codes",
"vouchers",
"coupons"
"unique codes",
"voucher codes",
"coupon codes"
],
"homepage": "https://github.com/nextapps-be/unique-codes",
"homepage": "https://github.com/wotzebra/unique-codes",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "Günther Debrauwer",
"email": "[email protected]",
"homepage": "https://nextapps.be",
"role": "Developer"
},
{
"name": "Evert Arnould",
"email": "[email protected]",
"homepage": "https://nextapps.be",
"email": "[email protected]",
"role": "Developer"
}
],
Expand All @@ -35,12 +27,12 @@
},
"autoload": {
"psr-4": {
"NextApps\\UniqueCodes\\": "src"
"Wotz\\UniqueCodes\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"NextApps\\UniqueCodes\\Tests\\": "tests"
"Wotz\\UniqueCodes\\Tests\\": "tests"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/UniqueCodes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NextApps\UniqueCodes;
namespace Wotz\UniqueCodes;

use RuntimeException;

Expand Down
4 changes: 2 additions & 2 deletions tests/UniqueCodesTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace NextApps\UniqueCodes\Tests;
namespace Wotz\UniqueCodes\Tests;

use Generator;
use NextApps\UniqueCodes\UniqueCodes;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use RuntimeException;
use Wotz\UniqueCodes\UniqueCodes;

class UniqueCodesTest extends TestCase
{
Expand Down

0 comments on commit 16037e4

Please sign in to comment.