Download the PHP package telkins/laravel-inquiry without Composer

On this page you can find all versions of the php package telkins/laravel-inquiry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-inquiry

A (somewhat opinionated) Laravel package to help make asking questions and getting answers a little easier and more uniform.

Latest Version on Packagist GitHub Tests Action Status Quality Score Total Downloads

From time to time you may need to make inquiries of your application or different parts of your code. You may need to know whether or not something was done or you may need to build a collection of key value pairs. Sometimes this iss provided easily via model attributes or database queries. Sometimes, however, getting this information isn't quite as tidy as you might like it.

The goal of this package is to provide a (somewhat opinionated) way to make inquiries. You can create Inquiry classes. When you want to make a specific inquiry, then you "ask" that class: $myInquiry = MyInquiry::ask();. You get back a "details" object, which you define, that allows you to provide the details of your inquiry. Then, you ask for the answer. Here's a simple example:

Installation

You can install the package via composer:

Usage

For now, one must manually create Inquiry and Details classes.

Create an Inquiry

To create an inquiry class, simply extend Inquiry like so:

Create Inquiry Details

To create an inquiry detail classs, simply extend Details like so:

"Ask" Your Question, Get an Answer

Once you have built your inquiry and inquiry details classes, then you can begin to use them. There are three main steps to asking your question and getting an answer:

  1. Call the static ask() method on your Inquiry class. This returns the inquiry's details object.
  2. Using the details object, provide the details of the inquiry.
  3. Finally, request the answer by calling the answer() method on the details object.

Here is an example of asking and getting an answer all at once:

Here is an example of using the details object to provide different details to get different answers for different scenarios:

Conventions

By default, each Inquiry class will look for a "details" class that has the same FQCN with Details appended. So, for our example CanChildPlayPS4 class, it will look for CanChildPlayPS4Details.

To override this behavior, you can specify the "details" class name in your Inquiry class like so:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please use the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-inquiry with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package telkins/laravel-inquiry contains the following files

Loading the files please wait ....