Download the PHP package pubvana/profiles without Composer
On this page you can find all versions of the php package pubvana/profiles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package profiles
Pubvana Profiles
I noticed folks downloading some of these packages. I'm super grateful, Thank You! I would like to let folks know until this notice disappears I'm doing a lot of breaking changes without worrying about them. Once versions are up around 0.5.x things should settle down.
User profiles module for Pubvana. Built as a Flight School plugin.
Features
- Per-user profile records linked to Shield users
- Avatar support via the media picker widget
- Profile fields: display name, bio, avatar, website, Twitter, Facebook, LinkedIn
- Profile service mapped on
$app->profiles() - Registers an
adextpage contribution for user edit tabs when admin is present
Requirements
- PHP 8.1+
enlivenapp/flight-schoolenlivenapp/flight-shieldenlvienapp/migrationsflightphp/active-record
Recommends
pubvana/admin(Admin UI for user edit tabs and profile management)pubvana/media(for Avatar Image support)
Installation
Enable in app/config/config.php:
Migrations package creates the profiles table automatically on first load.
Flight School config
This package uses Flight School's return-array config format. src/Config/Config.php returns the package defaults as an array, Flight School stores that array under pubvana.profiles on $app, and the current public route prefix is defined there with 'routePrepend' => 'profile'.
Model
The package also exposes a service on $app->profiles() for common profile lookups and updates.
The Profile model provides:
findByUserId(int $userId)— find a profile by user IDfindOrCreate(int $userId)— find or create (lazy initialization)updateFromArray(array $data)— update allowed fields from form POST data
Schema
| Column | Type | Notes |
|---|---|---|
id |
int | Primary key |
user_id |
int | Foreign key to users |
display_name |
varchar, nullable | |
bio |
text, nullable | |
avatar |
varchar, nullable | Path to media image |
website |
varchar, nullable | |
twitter |
varchar, nullable | |
facebook |
varchar, nullable | |
linkedin |
varchar, nullable | |
created_at |
datetime | |
updated_at |
datetime |
License
MIT
All versions of profiles with dependencies
enlivenapp/flight-school Version ^0.3
enlivenapp/flight-shield Version ^0.2
enlivenapp/migrations Version ^0.2
flightphp/active-record Version ^0.7