Download the PHP package laravel-gtm/safebase-sdk without Composer

On this page you can find all versions of the php package laravel-gtm/safebase-sdk. 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 safebase-sdk

Saloon API SDK (template)

Boilerplate for Laravel-ready PHP API client packages using Saloon v4: connector, optional rate limiting, Laravel service provider, Pest, PHPStan, and Pint.

This repository is intended to be used as a GitHub template. After you create a new repository from it, customize the package identity and class names with the one-time init script below (it deletes itself after a successful run).

Requirements

AI and editor rules

This template includes the same rule layout as the luma-sdk package: .cursor/rules/ (.mdc mirrors with globs front matter) for Cursor. The Laravel rules file notes that this repo uses laravel/pint in require-dev and composer lint / composer format, which differs from the optional “global Pint only” wording elsewhere in that document.

Laravel Boost-style helpers live under safebase-sdk-development skill (stub until the initial-setup skill is run). The init script renames both skill folders to use your package slug ({package-slug}-initial-setup and {package-slug}-development).

CLAUDE.md at the repo root summarizes commands, checks, and architecture; run ./init-saloon-sdk.sh once after creating a new repo so names in that file match your package.

First-time setup (after “Use this template”)

  1. Clone your new repository and install dependencies:

  2. Run the initializer at the repo root. It will prompt for:

    • Composer vendor — replaces laravel-gtm (e.g. laravel-gtm).
    • Package slug — replaces safebase-sdk everywhere, including the second segment of the Composer name and the config file basename (e.g. hubspot-sdklaravel-gtm/hubspot-sdk).
    • Short class prefix — PascalCase, without Sdk on the end; the script adds Sdk, Connector, and ServiceProvider for you (e.g. HubspotHubspotSdk, HubspotConnector, HubspotServiceProvider).
    • Env prefix — replaces SAFEBASE_ in the published config (e.g. HUBSPOT_API).
    • Default API base URL.

    The PHP root namespace is derived as {VendorPascal}{Prefix}Sdk (e.g. laravel-gtm + HubspotLaravelGtm\HubspotSdk). composer.json keeps JSON’s doubled backslashes (\\) in autoload and extra.laravel.providers; you do not need to type those.

    Non-interactive (e.g. CI), same values as environment variables:

    Preview changes without writing files (--dry-run does not delete the script):

    After a successful full run (Composer install, tests, PHPStan, Pint), init-saloon-sdk.sh removes itself so it cannot be applied twice by mistake.

  3. Update README badges and repository URLs (Packagist, GitHub Actions) for your package.

  4. Replace the example ExampleGetRequest / ping() flow with real endpoints, DTOs, and resources for your API.

  5. Once you have added initial request classes, response DTOs, and resource methods, run the safebase-sdk-initial-setup Boost skill (via an AI agent) to generate API-specific content for:

    • resources/boost/skills/safebase-sdk-development/SKILL.md — comprehensive development guide with real class names, code examples, and testing patterns
    • resources/boost/guidelines/core.blade.php — Boost guidelines with setup instructions and code snippets

    This replaces the placeholder stubs with real documentation matching your SDK's structure. After the init script, the skill name will be {your-package-slug}-initial-setup.

  6. In GitHub: Settings → General → Template repository — enable only on the canonical template repo, not on forks meant for production.

Configuration (Laravel)

Publish the config (before init the tag is safebase-sdk-config; after init it becomes {your-package-slug}-config):

After running the init script, use your package slug in the tag (e.g. hubspot-sdk-config). Env keys use your chosen ENV_PREFIX (defaults before init use SAFEBASE_*):

Usage

Via the service container

Standalone

Example call

The template exposes a ping() method wired to GET /v1/ping — replace this with real API methods.

Development

License

MIT. See LICENSE.


All versions of safebase-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/support Version ^11.0 || ^12.0 || ^13.0
saloonphp/saloon Version ^4.0
saloonphp/laravel-plugin Version ^4.0
saloonphp/rate-limit-plugin Version ^2.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 laravel-gtm/safebase-sdk contains the following files

Loading the files please wait ...