viget/craft-lever
Composer 安装命令:
composer require viget/craft-lever
包简介
Wrapper to integrate with the Lever API
README 文档
README
Lever Hire is a powerful recruiting platform to track applicants. Now you can integrate with Lever directly from your Craft site.
Requirements
This plugin requires Craft CMS 4.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require viget/craft-lever -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Lever.
Lever Overview
Instead of sending applicants to apply on your Lever site, you can create a form to save applicants right on your Craft site.
Configuring Lever
- Copy
src/config.php - Save the file as
config/lever.php - Add your Lever values for
apiKeyandsite
Finding Your API Key
Visit Sections > Integrations > API to find your API Key
Finding Your Site
Visit Sections > Job site to find your Site. The value you need to use in the config is everything that comes after https://jobs.lever.co/. In the screenshot above, the site value is viget.
Using Lever
For applicants to apply to jobs in Lever, you will need to build a form to process these requests. Here is the form in its simplest state:
<form method="post" enctype="multipart/form-data">
{{ getCsrfInput() }}
<input type="hidden" name="action" value="lever/default/save-applicant">
{{ redirectInput('careers/thanks') }}
<input type="hidden" name="position" value="1">
<label for="name">Name</label>
<input type="text" name="name" id="name" required>
<label for="email">Email</label>
<input type="email" name="email" id="email" required>
...
</form>
Fields
position
The Lever ID of the position to apply to.
name
This is a required field.
email
This is a required field.
urls
This is an optional field. It will split a <textarea> on new lines and submit each URL separately.
Optional Fields
You can see additional optional fields in the Lever Postings API documentation.
Field Type
A Lever Field Type is also available in this plugin. If you want a control panel user to select which position(s) can be applied to, this will provide a list of open positions from Lever in the Craft control panel for a control panel user to select from.
Front-End Example
<label for="position">Position</label>
<select name="position" id="position" required>
<option value="">Select Position</option>
{% for opening in entry.leverPositions %}
<option value="{{ opening.leverId }}">{{ opening.leverTitle }}</option>
{% endfor %}
</select>
viget/craft-lever 适用场景与选型建议
viget/craft-lever 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.45k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 11 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「Craft」 「craftcms」 「craft-plugin」 「lever」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 viget/craft-lever 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 viget/craft-lever 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 viget/craft-lever 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Integrate with Snipcart.
Restrict user registration by domain in Craft CMS, allows you to limit who can register for your site based on their email address.
统计信息
- 总下载量: 1.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-07


