chore: change project namespace (#3)

Change namespace from `victorwesterlund/globalsnapshot` to `vlw/globalsnapshot`.

I will also deprecate the [existing Packagist listing](https://packagist.org/packages/victorwesterlund/globalsnapshot) in favor of a new one using the new namespace.

Reviewed-on: https://codeberg.org/vlw/php-globalsnapshot/pulls/3
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
This commit is contained in:
Victor Westerlund 2024-11-23 09:23:17 +00:00 committed by Victor Westerlund
parent 80cb5d17b2
commit 0db14c2d0b
3 changed files with 6 additions and 6 deletions

View file

@ -24,12 +24,12 @@ echo $_ENV["hello"]; // echo: "world"
1. Install with composer 1. Install with composer
``` ```
composer install victorwesterlund/globalsnapshot composer install vlw/globalsnapshot
``` ```
2. `use` in your project 2. `use` in your project
```php ```php
use victorwesterlund\GlobalSnapshot; use vlw\GlobalSnapshot;
``` ```
3. Capture current superglobals with `capture()` 3. Capture current superglobals with `capture()`

View file

@ -1,18 +1,18 @@
{ {
"name": "victorwesterlund/globalsnapshot", "name": "vlw/globalsnapshot",
"description": "Capture and restore the state of all PHP superglobals.", "description": "Capture and restore the state of all PHP superglobals.",
"type": "library", "type": "library",
"license": "Unlicense", "license": "Unlicense",
"authors": [ "authors": [
{ {
"name": "Victor Westerlund", "name": "Victor Westerlund",
"email": "victor.vesterlund@gmail.com" "email": "victor@vlw.se"
} }
], ],
"minimum-stability": "dev", "minimum-stability": "dev",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"victorwesterlund\\": "src/" "vlw\\": "src/"
} }
} }
} }

View file

@ -1,6 +1,6 @@
<?php <?php
namespace victorwesterlund; namespace vlw;
// Capture the current state of all superglobals. // Capture the current state of all superglobals.
// This will save a copy of all keys and values and any changes made to the superglobals // This will save a copy of all keys and values and any changes made to the superglobals