定制 divtag-nl/license-plate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

divtag-nl/license-plate

最新稳定版本:v1.0.0

Composer 安装命令:

composer require divtag-nl/license-plate

包简介

PHP library to validate and format license plate numbers.

README 文档

README

Build Status

This library can be used to validate and format license plate numbers. Countries currently supported:

  • Belgium (1971-now)
  • France (1976-now)
  • German (unknown-now)
  • Israel (unknown date-now)
  • Netherlands (1951-now)
  • Spain (1900-now)
  • United Kingdom (1903-now)

Other countries will be added in the future

How to install

Add the following to your composer.json:

{ "require": { "divtag-nl/license-plate": "^1.0.0" } }

How to use

Call the constructor of the license plate class of your choice with the user input as the first parameter:

<?php $licenseplate = new \Intrepidity\LicensePlate\DutchLicensePlate('08ttnp'); if($licenseplate->isValid()) { echo $licenseplate->format(); // Outputs 08-TT-NP in this case }

Since the license plate classes for each country implement the LicensePlateInterface, they expose isValid() and format() methods. Country-specific methods may also be available. Please check the code of the specific class to get the complete picture.

Please note that this library does not check if a license plate actually exists, nor does it exclude combinations that aren't allowed.

统计信息

  • 总下载量: 47.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固