Download the PHP package rosalana/accounts without Composer

On this page you can find all versions of the php package rosalana/accounts. 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 accounts

Rosalana Accounts

This package is a part of the Rosalana eco-system. It provides a way to manage accounts and sync users in the eco-system. It uses the Basecamp API to get users and their accounts.

Note: This package is a extension of the Rosalana Core package.

Table of Contents

Installation

To install the rosalana/accounts package, you must first have the rosalana/core package installed. If you haven't installed it yet, please refer to the rosalana/core documentation.

After installing the rosalana/core package, use the rosalana:add command from the Rosalana CLI and select rosalana/accounts from the list:

After installing the package, you should publish its assets using the following command:

You can specify which files to publish. Publishing the configuration files is required to set up the package properly. Other files are optional and can be published as needed. However, it is recommended to publish all files to take full advantage of the package features.

Do not forget to add the rosalana_account_id identifier to $fillable array of your Authenticable model. This is required for the package to work properly.

Configuration

After publishing the package, you will find a rosalana.php configuration file in the config directory of your Laravel application. You can customize these options according to your needs.

This file will grow over time as you add more Rosalana packages to your application. Each package contributes its own configuration section. The rosalana.php file serves as the central configuration hub for all Rosalana packages.

rosalana/accounts package provides configuration options for:

Features

Accounts

The rosalana/accounts package integrates deeply with Laravel’s native authentication system, while seamlessly connecting your application to the Rosalana Basecamp server.

This means you can continue using Laravel’s standard auth() functions, guards, and session handling — but behind the scenes, all authentication requests (login, register, logout, refresh) are securely forwarded to Basecamp and handled automatically.

You don’t need to manually handle API tokens — the session system handles it automatically behind the scenes.

Automatic User Syncing

Whenever a user logs in or registers through Basecamp, their data is automatically synchronized with your local application using the configured model and identifier:

This enables cross-app authentication across the Rosalana ecosystem — logging into one app makes the user accessible in others, without needing to register again.

Logging In

You can authenticate the user using a single command:

Registering a New User

This creates a new user in Basecamp, synchronizes it locally, and logs the user in.

Logging Out

This logs the user out from both your application and Basecamp, and fully clears their session and token.

Refreshing the Session Token

Accessing the Current User

You can keep using Laravel's standard way:

This works seamlessly, as rosalana/accounts uses Laravel's built-in authentication engine under the hood - no custom guards, no suprises.

Advanced Access

In some cases, you may want to interact directly with the session or token management:

This gives you full control if you need to customize how authentication is handled in special cases (e.g. background jobs, API auth, etc).

Basecamp Bindings

The rosalana/accounts package registers a Basecamp Bindings under the key users and auth. This means that you can use the Basecamp facade to access the Basecamp API and get users.

Bindings provides pre-configured methods which internally handle the Basecamp API requests, including authentication and pipeline integration. You no longer need to manually specify endpoints, tokens or headers.

Beaware that bindings are just a route definitions. No handling is done after that. For further usage needs to be extended somewhere.

Stubs

To make everything easier, the package provides predefined files for user authentication. Such as controllers for login, logout, and registration, Requests for validation, and routes.

Available Hooks

Hook Description Data
user:login Triggered when a user logs in successfully local_id: Local User ID
remote_id: Remote User ID
And the rest of the response from Basecamp server
user:register Triggered when a new user registers successfully local_id: Local User ID
remote_id: Remote User ID
And the rest of the response from Basecamp server
user:logout Triggered when a user logs out successfully local_id: Local User ID
And the rest of the local user
user:refresh Triggered when a user refreshes their session local_id: Local User ID
remote_id: Remote User ID
And the rest of the response from Basecamp server

Read documentation for Hooks to learn how to use them.

May Show in the Future

Stay tuned — we're actively shaping the foundation of the Rosalana ecosystem.

License

Rosalana Accounts is open-source under the MIT license, allowing you to freely use, modify, and distribute it with minimal restrictions.

You may not be able to use our systems but you can use our code to build your own.

For details on how to contribute or how the Rosalana ecosystem is maintained, please refer to each repository’s individual guidelines.

Questions or feedback?

Feel free to open an issue or contribute with a pull request. Happy coding with Rosalana!


All versions of accounts with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
rosalana/core Version ^0 || dev-master
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 rosalana/accounts contains the following files

Loading the files please wait ...