cornell-custom-dev/cd-laravel-base
Composer 安装命令:
composer create-project cornell-custom-dev/cd-laravel-base
包简介
Cornell Custom Dev Laravel starter kit for Livewire.
关键字:
README 文档
README
Setup
Run composer setup after cloning to set up your environment.
FluxPro components will not be accessible until you provide Flux repo credentials in auth.json.
Note: If you run composer setup inside the lando container you will need to provide a GitHub Token to access the private https://github.com/CornellCustomDev/cds repository.
Local authentication setup
# File: .env
REMOTE_USER=your_netid_here
This skips SSO authentication, see below for more details on SSO setup.
Run npm
Run the following commands for local environment:
npm install
npm run build
lando artisan optimize
Recreate database with User table data:
Run this command to recreate your database and seed users table:
lando artisan migrate:fresh --seed
Notes: The migrate:refresh command will roll back all of your migrations and then execute the migrate command. This command effectively re-creates your entire database.
Layout
The Layout is built with the Cornell Design System: https://cornellcustomdev.github.io/cds-docs/
Edit the layout starting at resources/views/components/layouts/app.blade.php
Components
Components are built with FluxPro. Examples of components are at resources/views/examples/form.blade.php
Available components:
Using components
Components are used in blade files with the <x-cds syntax. For example, to use the text input forms component, you would write:
<x-cds.forms.input name="email" label="Email" />
You can also pass additional attributes to the component and they will be applied to the contained input element ("required" in this case). Named slots can also be used to fill attributes. For example:
<x-cds.forms.input name="name" label="Name" required> <x-slot:description> Please enter your full name. </x-slot:description> </x-cds.forms.input>
Common and defaulted attributes can be found in the component's blade file, generally as @prop definitions so that an IDE can provide autocomplete.
The underlying Flux component documentation is linked from the blade file and should be consulted for additional options and usage.
SSO Authentication
The starter kit can use Cornell's SSO for authentication. routes/examples.php demonstrates how to use CUAuth to require SSO login for specific pages.
The defaults set in config/cu-auth.php use Apache mod_shib and will create a new user if one does not exist. See the config file for other options which can also be set with environment variables.
Most apps will require a custom implementation of the CUAuthenticated event listener to handle user authorization. See app/Listeners/CUAuthorizeUser.php for an example of how to implement this listener.
Local setup
Recommended
CU_AUTH_IDENTIY_MANAGER=php-saml
This will allow you to test SSO authentication locally using the OneLogin SAML PHP Toolkit.
Alternatively, you can skip authentication locally:
REMOTE_USER=your_netid_here
cornell-custom-dev/cd-laravel-base 适用场景与选型建议
cornell-custom-dev/cd-laravel-base 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cornell-custom-dev/cd-laravel-base 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cornell-custom-dev/cd-laravel-base 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cornell-custom-dev/cd-laravel-base 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Alfabank REST API integration
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
Laravel package for Accurate Online API integration.
The skeleton application for the Geoffrey agent framework.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-18