Download the PHP package alisons/caller without Composer
On this page you can find all versions of the php package alisons/caller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alisons/caller
More information about alisons/caller
Files in alisons/caller
Package caller
Short Description A caller package to enhance a project with caller functionality
License
Informations about the package caller
Sure! Below is the complete README.md
file that you can directly use for your project.
bash composer require alisons/caller `
2. Publish Vendor Assets
Next, publish the vendor assets with the following command:
When prompted, select the option for Alisons\Caller\CallerServiceProvider
.
3. Run Migration
Run the migration to install the necessary database table:
This will create the required tables in your database for the caller functionality.
4. Update Views
By default, the application uses Laravel Breeze's layouts->app
as its layout. If you're using a different layout, you need to update the references:
- Navigate to
vendor/alisons/caller/resources/views/layout/main.blade.php
and change the layout reference to match your application layout. - The package uses a section called
caller-wrapper
. In your layout file, add a@yield('caller-wrapper')
where you want the caller section to appear.
Accessing the Caller Settings
Once the package is installed, you can access the Caller settings at the following URL:
This is the page where you can configure the caller functionality for your application.
Configuring the Caller in Your Application
To enable the caller functionality, you need to include the JavaScript library on the page where you want to use it.
Add the Script
Add the following script to the <head>
section of your layout file:
This ensures that the JavaScript necessary for the caller functionality is loaded.
Add Phone Numbers
Next, place the phone number(s) using the following format within your view:
Ensure that the number is placed in the data-number
attribute and the visible number is placed inside the anchor tag.
Conclusion
That's it! You've now successfully installed and configured the Caller package in your Laravel application. If you have any issues or questions, please feel free to open an issue on this repository.
We hope this package enhances your application with seamless caller functionality!
License
This package is licensed under the MIT License.