Download the PHP package mguinea/laravel-robots without Composer
On this page you can find all versions of the php package mguinea/laravel-robots. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mguinea/laravel-robots
More information about mguinea/laravel-robots
Files in mguinea/laravel-robots
Package laravel-robots
Short Description Laravel package to manage robots in an easy way
License MIT
Homepage https://github.com/mguinea/laravel-robots
Informations about the package laravel-robots
Laravel Robots
Laravel package to manage robots easily.
If you need a detailed explanation about how robots.txt file works, visit http://www.robotstxt.org/robotstxt.html
This package allows you to manage robots of your site dinamically allowing you to differenciate between environments or configurations.
Migration to persist configuration is optional; you can change its data source.
Once package is installed you can do these things:
Installing
You can install via Composer.
Running the tests
Just execute
Unit tests will test all methods from Robots class and its related facade.
Usage
1. Dynamically
You can use Robots in routes file to generate a dynamic response
1.1. Dynamically with facade
You can use Robots facade in routes file to generate a dynamic response
2. To robots.txt default file
If you prefer to write the original robots.txt file, just use the generator as you have seen
3. Building from Data Source
You could prefer building it from some data source. To get that, you just must instantiate Robots object using an array with key value parameters as shown below.
Note that comments and spacers have been removed.
Methods
You can use Robots class methods in an individual or nested way.
Remember that you can use Facade to avoid instantiation.
Built With
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MIT License - see the LICENSE file for details
Authors
- Marc Guinea MarcGuinea