al-rimi/submit
Composer 安装命令:
composer require al-rimi/submit
包简介
A simple submission system for managing student submissions.
README 文档
README
A simple and customizable system for managing submissions. Designed for Laravel applications, it offers essential tools to streamline submission processes with minimal setup.
Installation
Step 1: Install the Package
composer require al-rimi/submit
Step 2: Run the Installation Command
php artisan submit:install
This command performs the following tasks:
- Publishes assets, views, and configuration files.
- Installs necessary Node.js dependencies.
- Updates the
vite.config.jsfile with Submit assets (submit.cssandsubmit.js). - Builds assets using
npm run build. - Runs database migrations.
- Seeds the database with example data.
Features
- Submission Management: Collect, validate, and store student submissions effectively.
- Email Notifications: Rreceive notifications after each submission.
- Dynamic Table Management: Displays and updates student submissions dynamically without page reloads.
- Auto-fill: Custom JS script for client side auto fill.
- UI: vanilla CSS with simple animations and clean look..
Customization
Environment Variables
To enable submission notifications and set a deadline, add the following variables to your .env file:
NOTIFICATION_EMAIL= # Email address to receive submission notifications SUBMISSION_DEADLINE= # Submission deadline in ISO 8601 format (e.g., "YYYY-MM-DDTHH:MM:SS")
Routes
The package publishes its routes to routes/submit.php. You can customize these routes to:
- Change view paths.
- Add middleware for additional security or access control.
Views
All customizable views are published to your project for easy modification:
- Submission Page:
resources/views/submissions.blade.php - Email Template:
resources/views/emails/submissions_email.blade.php
CSS and JavaScript
dependency-free assets for styling and interactivity in vanilla CSS and JavaScript:
- CSS File:
resources/css/submit.css - JavaScript File:
resources/js/submit.js
Database
The package provides database migrations and a sample seeder to kickstart your setup:
- Migrations: Automatically created tables for submission data.
- Seeder:
database/Seeders/StudentsTableSeeder.phppopulates the database with example records.
Troubleshooting
Vite Configuration
The package automatically adds resources/css/submit.css and resources/js/submit.js to vite.config.js. If this step fails, manually update your vite.config.js file:
export default defineConfig({
input: [
'resources/css/app.css',
'resources/js/app.js',
'resources/css/submit.css',
'resources/js/submit.js'
],
// other Vite configuration
});
Build Issues
If you encounter build issues, ensure Node.js and npm are properly installed. Then rerun:
npm install
npm run build
Uninstallation
Step 1: Remove all traces of the Submit package:
php artisan submit:uninstall
Step 2: remove the package:
composer remove al-rimi/submit
Requirements
- PHP 8.0 or higher
- Laravel 10.x or 11.x
- Node.js (for Vite asset compilation)
Have questions or facing issues? Check out the issues page.
License
This package is open-source and is licensed under the MIT License.
al-rimi/submit 适用场景与选型建议
al-rimi/submit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 11 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「laravel」 「customizable」 「submission」 「student-management」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 al-rimi/submit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 al-rimi/submit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 al-rimi/submit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple caching engine which is highly customizable.
A Free Magento 2 Extension designed for CDN and Varnish cache warming. Warm up URLs located in sitemaps, as well as static content, media content and dynamic catalog images. Run manually or schedule by cron expression. This extension is easily customizable with dispatched events and the CLI command
Simple ASCII output of array data
An automatic, recursive-on-associations admin panel for symfony/doctrine with customization options
Alfabank REST API integration
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-17