Download the PHP package brickservers/gsuite without Composer

On this page you can find all versions of the php package brickservers/gsuite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gsuite

Google Workspace SDK for Laravel

Latest Version Total Downloads

A modern, fully-featured Laravel package for managing Google Workspace (formerly G Suite) using the latest Google Admin SDK API. Supports user management, group management, directory operations, and more.

Sponsor

Support the development of this package: Sponsor

Sponsor with Paystack

Features

Requirements

Installation

Publish Configuration

This will publish the configuration file to config/google-workspace.php.

Configuration

1. Set Up Google Cloud Project

  1. Go to Google Cloud Console
  2. Create a new project
  3. Enable the "Google Admin SDK API"
  4. Create a service account
  5. Download the credentials JSON file
  6. Move the file to storage/credentials.json (or configure the path)

2. Configure Environment Variables

Add these to your .env file:

3. Update Configuration

Edit config/google-workspace.php to customize settings:

Usage

Basic Setup

User Management

Create a User

Get a User

List Users

Update a User

Delete a User

Suspend/Unsuspend a User

Manage User Aliases

Group Management

Create a Group

Get a Group

List Groups

Update a Group

Delete a Group

Manage Group Members

Error Handling

The package throws GoogleWorkspaceException for all API errors:

Exception Types

Data Transfer Objects (DTOs)

UserDTO

GroupDTO

Enums

UserProjection

UserViewType

ApiScope

Predefined OAuth scopes for different APIs:

Migration from Old Package

If you're upgrading from wyattcast44/gsuite or brickservers/gsuite:

Changes Summary

  1. Namespace Changed: Wyattcast44\GSuiteBrickServers\GoogleWorkspace
  2. New DTOs: Use UserDTO and GroupDTO instead of raw arrays
  3. Type-Safe: All methods now have proper type hints
  4. Better Errors: Custom exception types for better error handling
  5. Modern PHP: Uses PHP 8.2+ features (enums, readonly types, named arguments)

Migration Steps

Before (Old Package)

After (New Package)

Testing

Run with coverage:

Debugging

Enable logging in your .env:

View logs in storage/logs/laravel.log to see all API operations.

Supported APIs

Security Best Practices

  1. Never commit credentials.json - Add to .gitignore
  2. Use environment variables - Store sensitive data in .env
  3. Limit API scopes - Only request scopes your app needs
  4. Enable logging - Monitor all API operations
  5. Use protected resources - Add critical accounts/groups to undeletable list
  6. Validate input - DTOs provide validation out of the box

Performance Tips

  1. Use pagination - Always set maxResults parameter
  2. Cache results - Store frequently accessed data
  3. Batch operations - Group multiple API calls when possible
  4. Enable logging selectively - Disable in production if not needed

Contributing

Contributions are welcome! Please follow Laravel coding standards and include tests.

Changelog

See CHANGELOG.md for version history and breaking changes.

License

The MIT License (MIT). Please see License File for more information.

Support

For issues, questions, or suggestions, please open an issue on GitHub.

Credits


All versions of gsuite with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
google/apiclient Version ^2.19
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
psr/log Version ^1.1|^2.0|^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package brickservers/gsuite contains the following files

Loading the files please wait ...