---
application: "Intervention Validation"
version: "Version 4"
status: "stable"
---

# ISRC Rule

## Validate International Standard Recording Codes

Validate International Standard Recording Codes (ISRC) in Laravel with Intervention Validation. Music industry IDs.

> public Intervention\Validation\Rules\Isrc::__construct()

Checks for a valid [International Standard Recording Code](https://en.wikipedia.org/wiki/International_Standard_Recording_Code).

### Example

```php
use Illuminate\Support\Facades\Validator;
use Intervention\Validation\Rules\Isrc;

// validate code
$validator = Validator::make($request->all(), [
    'attribute-key' => new Isrc(),
]);
```

---

## Become a Sponsor

### Intervention Validation needs your help to keep the project going

Intervention Validation is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)