@@ -287,13 +287,19 @@ $packages = $client->teams()->packages($teamId);
287
287
Returns an array of packages.
288
288
289
289
#### Grant a team access to a list of private packages
290
+
291
+ You pass an array of packages to give access to. The values of the array can be either package ID or package name.
292
+
290
293
``` php
291
294
$teamId = 1;
292
- $packages = $client->teams()->addPackages($teamId, ['acme-website/package']);
295
+ $packages = $client->teams()->addPackages($teamId, ['acme-website/package', 1 ]);
293
296
```
294
297
Returns an array of packages.
295
298
296
299
#### Remove access for a package from a team
300
+
301
+ You can use the package ID or package name as a reference.
302
+
297
303
``` php
298
304
$teamId = 1;
299
305
$packages = $client->teams()->removePackage($teamId, 'acme-website/package');
@@ -429,6 +435,9 @@ $packages = $client->customers()->addOrEditPackages($customerId, $packages);
429
435
Returns an array of all added or edited customer packages.
430
436
431
437
#### Revoke access to a package from a customer
438
+
439
+ You can reference the package by its ID or name.
440
+
432
441
``` php
433
442
$customerId = 42;
434
443
$packageName = 'acme-website/package';
@@ -533,6 +542,9 @@ $packages = $client->vendorBundles()->packages()->addOrEditPackages($vendorBundl
533
542
Returns an array of all added or edited customer packages.
534
543
535
544
#### Remove a package from a vendor bundle
545
+
546
+ You can reference the package by its ID or name.
547
+
536
548
``` php
537
549
$vendorBundleId = 42;
538
550
$packageName = 'acme-website/package';
@@ -772,6 +784,8 @@ $client->subrepositories()->mirroredRepositories()->removePackages($subrepositor
772
784
773
785
### Package
774
786
787
+ You can reference a package by its name or ID.
788
+
775
789
#### List an organization's packages
776
790
``` php
777
791
$filters = [
@@ -784,7 +798,10 @@ Returns an array of packages.
784
798
785
799
#### Show a package
786
800
``` php
801
+ // Either use package name:
787
802
$package = $client->packages()->show('acme-website/package');
803
+ // Or the package ID:
804
+ $package = $client->packages()->show(123);
788
805
```
789
806
Returns the package.
790
807
@@ -847,6 +864,9 @@ $client->packages()->listDependents('acme-website/package');
847
864
Returns a list of packages.
848
865
849
866
#### List all customers with access to a package
867
+
868
+ Pass either package ID or package name as argument.
869
+
850
870
``` php
851
871
$client->packages()->listCustomers('acme-website/package');
852
872
```
0 commit comments