Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daredloco/live-controls
Controls/Scripts/Helpers for Laravel and Livewire
https://github.com/daredloco/live-controls
laravel livewire
Last synced: 3 months ago
JSON representation
Controls/Scripts/Helpers for Laravel and Livewire
- Host: GitHub
- URL: https://github.com/daredloco/live-controls
- Owner: daredloco
- License: gpl-3.0
- Archived: true
- Created: 2022-12-25T13:52:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-27T13:13:55.000Z (about 1 year ago)
- Last Synced: 2024-09-20T14:01:48.320Z (3 months ago)
- Topics: laravel, livewire
- Language: PHP
- Homepage:
- Size: 615 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Live Controls
![Release Version](https://img.shields.io/github/v/release/daredloco/live-controls)
![Packagist Version](https://img.shields.io/packagist/v/helvetiapps/live-controls?color=%23007500)**Use https://github.com/live-controls instead! This library won't be updated any further...**
Controls/Scripts/Helpers for Laravel and Livewire
Those are free to use, but are mostly for my own projects so no full support guaranteed.Check out the [Documentation](https://github.com/daredloco/live-controls/wiki/01.-Installation-&-Setup)
## Requirements
- Laravel 9+
- JetStream
- Livewire 2+
- Fortify
- [JetStrap](https://github.com/nascent-africa/jetstrap)## Translations
- English (en)
- German (de)
- Brazilian Portuguese (pt_BR)## Admin Interface
A System providing an administration dashboard/interface to handle all the things here seperately[Documentation](https://github.com/daredloco/live-controls/wiki/02.-Admin-Interface)
### Content
- User Page where admins can add/edit/remove Users and give them Permissions
- User Group Page where admins can add/edit/remove Groups and give them Permissions
- Permissions Page where admins can add/edit/remove Permissions
- You can add custom livewire controls to the Admin Interface by adding them to the configuration file### Todo
- Add custom Dashboard (Maybe someday...)
- Add Analytics Page where admins can see analytics stuff## User Groups System
A System handling user groups[Documentation](https://github.com/daredloco/live-controls/wiki/03.-User-Groups)
### Content
- Usergroups per User
- Middleware for routes to check if user is in group (usergroup:group_key)
- Middleware for routes to check if user is admin (admin). Admin group can be set in config and Master can be set as well
- Artisan commands to add group and add/remove user from group: livecontrols:addgroup, livecontrols:setgroup, livecontrols:unsetgroup
- HasGroups trait for Users
- Colors can be asigned to User Groups## User Permissions System
A System handling permissions for users or user groups, developer can add specific permissions by keyword and specific actions based on them which will show up afterwards[Documentation](https://github.com/daredloco/live-controls/wiki/04.-User-Permissions)
### Content
- Userpermissions per User/UserGroup
- PermissionsHandler Facade to check if user has permissions
- Artisan commands to add Permissions and add/remove user/usergroups from permissions: livecontrols:addpermission, livecontrols:setpermission, livecontrols:unsetpermission
- HasPermissions trait for Users### Todo
- Check if Subscription has expired inside the PermissionsHandler check## Support Tickets System
A System handling support tickets where users can send tickets and admins/moderators have access to answer them[Documentation](https://github.com/daredloco/live-controls/wiki/05.-Support-Tickets)
### Content
- Ticket Frontend for Users and Moderators. With route('livecontrols.support.index')
- SupportTickets with Title, Body, Priority and Status
- Configuration for "moderator" groups
- SupportTickets contain SupportMessages
- Moderators can change status of tickets
- Users can reopen tickets (sending messages will be disabled when ticket is closed)
- Configuration variable (support_reopen_tickets) if normal users can reopen ticket## Financial System
A System handling financial calculations and such[Documentation](https://github.com/daredloco/live-controls/wiki/06.-Financial)
### Content
- Fin class with useful functions (More functions will be added as time goes on)
- Cashflow object which handles financial cashflow (Includes CashflowItem class)### Todo
- FGTS Calculator (Maybe someday)
- ?## Payment System
A System handling different payment systems for e-commerce etc.[Documentation](https://github.com/daredloco/live-controls/wiki/07.-Payment)
### Content
- PagSeguro (testing) Redirect Checkout
- PagSeguro Objects with important informations: PaymentItem, PaymentReceiver, PaymentSender, ShippingInformation
- IUGU Transparent Checkout
- IUGU has the option to create a payment per PIX, Bank Slip or Credit Card and you can update a bill and remove it if it isn't already paid or due
- IUGU Objects with important informations: PaymentItem, PaymentSender### Todo
- Add IUGU Debit Card (If possible)
- Add PagSeguro Transparent Checkout (Depends on demand on projects)
- Add Sicoob/Credsete Handler (Depends on demand on projects)
- Take a look at Paymee and see if you can/want to include it
- Add PagSeguro production Redirect Checkout## Crypto
A System handling cryptography like encrypted database entries and such[Documentation](https://github.com/daredloco/live-controls/wiki/08.-Crypto)
### Content
- Added IsEncrypted trait with createEncrypted(array $fields, array $ignoredFields = []), updateEncrypted(array $fields, array $ignoredFields = []) and decrypt(string ...$fields)## SweetAlert2
Simple implementation of SweetAlert2 popups.### Content
- Livewire Control (Blade Component didn't work). Add it to the body of your layout or the page you want to use it.
- Timer and (optional) progressbar to close the window automatically
- Added InputFields (Text, Numeric, Date, Time, Color, TextArea, Select, Radio, File) to Popups called by Livewire
- Added InputGroups which acts as a group of InputFields for easy implementation and creation### Todo
- Add option to call popup with custom options (Add a constructor for custom popups like in lagoon charts library, maybe with an aditional array $options or such)
- Add inputfields to popups called from controller (Needs callback)
- Add more types of inputfields (Radio, Checkbox, ...)
- Add to show loading spinner
```
didOpen: () => {
Swal.showLoading()
}
```[Documentation](https://github.com/daredloco/live-controls/wiki/10.-SweetAlert2)
## AutoCEP Input
An Input for CEP which would give you the informations for road, etc. based on CepAberto### Content
- GetCEP class
- AutoCep input - @livewire('livecontrols-autocep')[Documentation](https://github.com/daredloco/live-controls/wiki/11.-AutoCEP)
## Masked Input
A masked input based on iMask### Content
- Masked Input livewire control - @livewire('livecontrols-masked-input')[Documentation](https://github.com/daredloco/live-controls/wiki/12.-Masked-Input)
## Subscriptions
A system for adding subscriptions for certain "products"/plugins/systems inside the system.### Content
- Subscription System where users can subscribe to different subscriptions at once
- Config variables
- SubscriptionsHandler class to add/remove subscriptions from users, to check if subscription is valid and to check if user has a certain (valid) subscription
- Subscriptions inside Admin Interface
- Create/Edit/Delete Subscriptions in Admin Interface
- Middleware to check if user has subscription
- Subscriptions have permissions (Will fall into permissionscheck if active)### Todo
- Add subscriptions to groups[Documentation](https://github.com/daredloco/live-controls/wiki/13.-Subscriptions)
## BBEditor
A BBEditor based on SCEditor (Probably generate own library out of this)### Content
- Simple BB Editor livewire control### Todo
- Add placeholders like in private system, but more dynamic
- Add ability to include the Image Gallery to the editor and when clicking on an image include it in the editor
- Add function to add images and save them to disk (Maybe someday)[Documentation](https://github.com/daredloco/live-controls/wiki/14.-BB-Editor)
## Calendar
A Calendar based on FullCalendar.io### Content
- Livewire Control with @livewire('livecontrols-calendar')
- Added eventClick events
- Added different view options### Todo
- Add custom options for time shown etc.
- Add more options
- Make design better on mobile devices## Dynamic Pages
Pages with controls that can be dynamically added and positioned### Todo
- Add base system## User blocking/banning
Add a system to block users for a certain amount of time or ban them completely. This should be done not only by email, but by IP and other systems### Content
- Simple banning system with username/email blocking### Todo
- Add a blacklist of names
- Add blocking to Admin Interface## Analytics
Simple system to track user behaviour. **NOT PRODUCTION READY**### Content
- Analytics database table for requests
- Analytics Middleware
- Saving user informations (Identifier (IP/Hashed IP), Mobile or not, DateTime of visit, page visited, User-Agent, Preferred language, languages)
- Campaigns added which can be called by using a certain query key
- Actions added which can be called by code### Todo
- Dashboard
- Add Analytics to Admin Interface with Charts (Use lagoon-charts for it, but make it optional)
- Save cookie on user device (Optional)## Image Gallery/Handling
### Content
- Simple image upload and management (get URL, get Path, remove). This is basically Storage in Laravel vanilla
- HasImages trait with ability to add avatar/image or specific images with column value
- Image Gallery with prototype design (view is publishable with livecontrols-imagegallery)
- Can select images in Image Gallery and an event 'imageSelectedForGallery{galleryId}' will be emitted### Todo
- Ability to show the images only for the user, ~~for a group~~ or for everyone
- Ability to add (optional) title and description to images. Can be enabled in config## Utils Systemes
A System with different utilities to make life easier, can be everything that doesn't fit into the other Systemes[Documentation](https://github.com/daredloco/live-controls/wiki/18.-Utils)
### Content
- Utils class with various helpers
- Array class with various helpers
- BBCodes class with transform() method to transform bbcode to html
- ContaboHandler for simple tasks with Contabo. Read wiki for more informations### Todo
- ?