viget/craft-lever 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require viget/craft-lever
    
  3. 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

  1. Copy src/config.php
  2. Save the file as config/lever.php
  3. Add your Lever values for apiKey and site

Finding Your API Key

Screenshot

Visit Sections > Integrations > API to find your API Key

Finding Your Site

Screenshot

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.

Screenshot

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 viget/craft-lever 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 13
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-07