Download the PHP package cswni/filament-companies without Composer

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

gif (1)

FILAMENT 8.x Packagist Downloads


Filament Companies

A Complete Authentication System Kit based on Companies built for Filament:

Getting Started

WARNING

Note

Getting Set Up

Installation

Install this package

After installing the package, you may execute the filament-companies:install Artisan command. This command requires the name of the stack to be filament and the option to be --companies. In addition, you may use the --socialite switch to enable socialite support.

Use one of the following commands to scaffold the application:

Finalizing Installation

Translations

If you wish to translate the package, you may publish the language files using:

Usage

If you would like, you may create a new account using:

You may also create a new account by registering through the application.

In the Laravel Welcome Page, you may:

In the company dropdown, you may:

In the user dropdown, where your avatar is, you may:

This package is extensively "borrowed" from the work of Taylor Otwell, his contributors and the Laravel Jetstream package. You can get a full understanding of the capabilities by reviewing the Jetstream Documentation.

If you want to change the filament path prefix to something such as "company", you may do so as you normally would in config/filament.php

The Laravel Welcome Page & Fortify will respect your changes

Socialite

By Default, the GitHub Provider will be enabled.

You may use any Provider that Laravel Socialite supports.

You may add or remove any Provider in config/filament-companies.php

If Twitter is desired, you may only use either Twitter OAuth1 or Twitter OAuth2, not both.

You may use this syntax if it is desired.

In config/services.php pass your Provider's credentials in the providers array:

The Provider's Redirect URI must look similar to the above (e.g. 'APP_URL/oauth/provider_name/callback')

An Example: How to Set Up GitHub (using Filament as Application Name & APP_URL)

  1. Go to https://github.com/settings/applications/new
  2. Application Name: Filament
  3. Homepage URL: https://filament.test/admin
  4. Authorization callback URL: https://filament.test/oauth/github/callback
  5. Click on Device Flow & Save
  6. Copy the Client Secret & store somewhere safe.

    Authorization callback URL = 'redirect' from above

In the .env file, for example:

You may temporarily turn off Socialite support if you previously chose it as an option during installation:

The Socialite package is extensively "borrowed" from the work of Joel Butcher, his contributors and the Socialstream package. You can get a full understanding of the capabilities by reviewing the Socialstream Documentation.

The following examples are a visual representation of the features this package supports that were provided by the methods implemented in Laravel Jetstream. You may find all of the features as provided by the Laravel Jetstream package here in their documentation.

Information about a user's companies may be accessed via the methods provided by the Wallo\FilamentCompanies\HasCompanies trait. This trait is automatically applied to your application's App\Models\User model during installation. This trait provides a variety of helpful methods that allow you to inspect a user's companies or company:

$user represents the current user of the application. Interchangeable with Auth::user()

Example #1: Only allowing a certain company ID to see & visit a filament page, resource, etc...

Example #2: Using the Current Company Name

You can use collections of different companies and group them together, or you may use different ranges of values, and more.

Company Invitations

In my opinion, if you are using GMAIL & you are testing, this is the easiest route to setup the Mail Server:

  1. Go to https://myaccount.google.com/apppasswords (May ask you to Sign in)
  2. Click on "Select app", enter name of Application, then click "Generate".
  3. Copy your app password and store it somewhere safe.

In your application's .env file, for example:

Port does not have to be specific

Roles & Permissions

You may change roles & permissions in app/Providers/FilamentCompaniesServiceProvider.php

Notice

Contributing

Install the package in your application's composer.json file using the dev prefix followed by your branches name:

Now, run composer update and continue by following the installation instructions above.


All versions of filament-companies with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
filament/filament Version ^2.0
illuminate/console Version ^8.6|^9.0|^10.0
illuminate/contracts Version ^8.6|^9.0|^10.0
illuminate/support Version ^8.6|^9.0|^10.0
laravel/fortify Version ^1.15
laravel/socialite Version ^5.6
matomo/device-detector Version ^6.1
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 cswni/filament-companies contains the following files

Loading the files please wait ....