renommage
This commit is contained in:
parent
5f8e0f97bf
commit
d42e2a5dd4
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "model-lib-php",
|
||||
"name": "multi-downloader-client",
|
||||
"image": "rg.fr-par.scw.cloud/kubernetes/devcontainer:php-8.3",
|
||||
"containerEnv": {
|
||||
|
||||
|
@ -1,9 +1,6 @@
|
||||
# model-lib-php
|
||||
# multi-downloader-client
|
||||
|
||||
## Utilisation
|
||||
- Remplacer tous les "model-lib-php" et "ModelLibPhp" par le nom du module
|
||||
- Modifier la description dans le fichier composer.json
|
||||
- Supprimer ce paragraphe
|
||||
|
||||
## Installation
|
||||
### Composer
|
||||
@ -19,5 +16,5 @@ Ajouter les modules communs dans composer.json
|
||||
```
|
||||
Lancer la commande
|
||||
```bash
|
||||
composer require nwb/model-lib-php
|
||||
composer require nwb/multi-downloader-client
|
||||
```
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "nwb/model-lib-php",
|
||||
"name": "nwb/multi-downloader-client",
|
||||
"description": "Modèle pour créer des modules communs php",
|
||||
"type": "library",
|
||||
"version": "0.0.1",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Nwb\\ModelLibPhp\\": "src/"
|
||||
"Nwb\\MultiDownloaderClient\\": "src/"
|
||||
}
|
||||
},
|
||||
"authors": [
|
||||
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Nwb\ModelLibPhp;
|
||||
|
||||
class ModelLibPhp
|
||||
{
|
||||
public function hello(): string
|
||||
{
|
||||
return 'Hello World, Composer!';
|
||||
}
|
||||
}
|
7
src/MultiDownloaderClient.php
Normal file
7
src/MultiDownloaderClient.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Nwb\MultiDownloaderClient;
|
||||
|
||||
class MultiDownloaderClient
|
||||
{
|
||||
}
|
@ -2,14 +2,13 @@
|
||||
|
||||
include __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Nwb\ModelLibPhp\ModelLibPhp;
|
||||
use Nwb\MultiDownloaderClient\MultiDownloaderClient;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ModelLibPhpTest extends TestCase
|
||||
class MultiDownloaderClienTest extends TestCase
|
||||
{
|
||||
public function testHello()
|
||||
{
|
||||
$modelLibPhp = new ModelLibPhp();
|
||||
$this->assertEquals('Hello World, Composer!', $modelLibPhp->hello());
|
||||
$client = new MultiDownloaderClient();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user