Skip to content

Commit

Permalink
Merge pull request #77 from sebhd1/italian-continents-countries
Browse files Browse the repository at this point in the history
Added Italian continents and countries
  • Loading branch information
danharrin authored Mar 4, 2024
2 parents e81f579 + 55dae11 commit 6a988d9
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Common use cases for Squire include:
- [Model Relationships](#model-relationships)
- [Validation](#validation)
- [Creating your own Models](#creating-your-own-models)
- [Adding a localization](#adding-a-localization)
- [Upgrading from 1.x](#upgrading-from-1x)
- [Need Help?](#need-help)

Expand Down Expand Up @@ -120,11 +121,12 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr

#### Installation

| Locale | Installation Command |
|--|--|
| German | `composer require squirephp/continents-de` |
| English | `composer require squirephp/continents-en` |
| Polish | `composer require squirephp/continents-pl` |
| Locale | Installation Command |
| ------- | -------------------------------------------------- |
| German | `composer require squirephp/continents-de` |
| English | `composer require squirephp/continents-en` |
| Polish | `composer require squirephp/continents-pl` |
| Italian | `composer require squirephp-italian/continents-it` |

#### Schema

Expand All @@ -145,14 +147,15 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr

#### Installation

| Locale | Installation Command |
|--|--|
| English | `composer require squirephp/countries-en` |
| French | `composer require squirephp/countries-fr` |
| German | `composer require squirephp/countries-de` |
| Polish | `composer require squirephp/countries-pl` |
| Spanish | `composer require squirephp/countries-es` |
| Dutch | `composer require quickstreambe/squirephp-countries-nl` |
| Locale | Installation Command |
| ------- | ------------------------------------------------------- |
| English | `composer require squirephp/countries-en` |
| French | `composer require squirephp/countries-fr` |
| German | `composer require squirephp/countries-de` |
| Polish | `composer require squirephp/countries-pl` |
| Spanish | `composer require squirephp/countries-es` |
| Dutch | `composer require quickstreambe/squirephp-countries-nl` |
| Italian | `composer require squirephp-italian/countries-it` |

#### Schema

Expand Down Expand Up @@ -465,6 +468,12 @@ class Language extends Rule

Squire models, their sources, and validation rules are all simply releasable in Composer packages. To see an example of this in action, check out the [`squirephp/countries`](https://github.com/squirephp/countries) and [`squirephp/countries-en`](https://github.com/squirephp/countries-en) packages.

## Adding a localization

If you wish to contribute to this package by adding a localization, feel free to make your own package(s) and take inspiration by the various sub-packages you can find in the organization repositories.

Once you've made your repository, publish it via [Packagist](https://packagist.org) and add your package to the specific table of the given category submitting a PR!

## Upgrading from 2.x

If you're using any validation rules, they are now all end with `Rule`. This allows both the model and rule to be imported into the same class without the use of aliasing:
Expand Down

0 comments on commit 6a988d9

Please sign in to comment.