{"repo":"squirephp/squire","free":true,"listed":false,"github":"https://github.com/squirephp/squire","clone":"git clone https://github.com/squirephp/squire.git","description":"A library of static Eloquent models for common fixture data.","language":"PHP","stars":1052,"topics":["eloquent","laravel","squire"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Squire is a library of static Eloquent models for fixture data that is commonly needed in web applications, such as countries, currencies and airports. It's based on the concepts of Caleb Porzio's Sushi package. Common use cases for Squire include: - Populating dropdown options, such as a country selector on an address form. - Attaching extra data to other models in your app, such as airport information to a Flight model. See the section on model relationships. - Validating user input. Contents - Installing a Model - Using a Model - Available Models - Squire\\Models\\Airline - Squire\\Models\\Airport - Squire\\Models\\Continent - Squire\\Models\\Country - Squire\\Models\\Currency - Formatting money - Squire\\Models\\GbCounty - Squire\\Models\\Region - Squire\\Models\\Timezone - Model Relationships - Validation - Creating your own Models - Adding a localization - Upgrading from 1.x - Need Help? Installing a Model You can use Composer to install Squire models into your application. Each model is available in a variety of languages, and you need only install the ones you will use. As an example, you can install the Squire\\Models\\Country model in English: A complete list of available models is below. Using a Model You can interact with a Squire model just like you would any other Eloquent model, except that it only handles read-only operations. Available Models Squire\\Models\\Airline Installation Locale Installation Command -- -- English composer require squirephp/airlines-en Schema Column Name D","default_branch":null,"files":null,"tree":[],"storefront":"/r/squirephp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/squirephp/squire/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}