inspiredminds/contao-personio
Composer 安装命令:
composer require inspiredminds/contao-personio
包简介
Personio API connection for Contao.
README 文档
README
Contao Personio
Personio API connection for Contao.
Configuration
For the job listings you first need to configure the public XML feed of the company's job listings:
# config/config.yaml contao_personio: xml_feed: https://{YOUR_COMPANY}.jobs.personio.de/xml
For the Recruiting API (i.e. sending applications to Personio directly via the website) you will need to define the Company ID and the Recruiting API token:
# config/config.yaml contao_personio: company_id: 123456 recruiting_api_token: your-token
It is recommended to store the token as an environment variable:
# .env
PERSONIO_RECRUITING_API_TOKEN=
# .env.local
PERSONIO_RECRUITING_API_TOKEN=your-token
# config/config.yaml contao_personio: company_id: 123456 recruiting_api_token: '%env(PERSONIO_RECRUITING_API_TOKEN)%'
You can of course also choose to store the Company ID as an environment variable (just like you can with any configuration values in Symfony).
Job List
The Personio jobs content element lists all available jobs. Within the content element you can set a redirect page for the details of the job. This redirect page must be a page of the type Personio job.
Job Reader
The Personio job content element acts as the reader output for the details of a job. For it to work, it needs to be placed within a page of the type Personio job.
Application Form
The application form can be placed either alongside the Personio job reader content element, or on its own page. In both cases the type of the page needs to be Personio job. If you place the form on a separate page, you can define a redirect page in the Personio job content element, so that it automatically generates a link to the application form.
The application form can either be generated through the dedicated Personio job application content element, or a form from the Contao Form Generator.
Content Element
In order to get additional form fields for your custom Personio attributes into the application form, you can use the
ModifyApplicationFormListener event:
// src/EventListener/ModifyApplicationFormListener.php namespace App\EventListener; use Codefog\HasteBundle\Util\ArrayPosition; use InspiredMinds\ContaoPersonio\Event\ModifyApplicationFormEvent; use Symfony\Component\EventDispatcher\Attribute\AsEventListener; #[AsEventListener] class ModifyApplicationFormListener { public function __invoke(ModifyApplicationFormEvent $event): void { $event->getForm() ->addFormField( 'custom_attribute_123', [ 'label' => 'Custom attribute', 'inputType' => 'text', 'eval' => ['maxlength' => 255], ], ArrayPosition::after('email'), ) ; } }
The name of the field must match Personio's internal name of the custom attribute.
Form Generator
Instead of using the Personio job application content element you can also create your own form in the Contao Form Generator and activate the Store in Personio setting. Within the form you can then add the form fields you need. The names of the fields must match the names of the fields in the API. For file uploads the field name must match the category of the file in the API.
Also keep in mind that the fields first_name, last_name and email are mandatory in the Personio API.
Acknowledgements
Development funded by:
inspiredminds/contao-personio 适用场景与选型建议
inspiredminds/contao-personio 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 90 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 inspiredminds/contao-personio 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 inspiredminds/contao-personio 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 90
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2025-05-12