Comments (5)
That would be great! I'd like to use this package for Laravel 4.2 actually.
from seotools.
@rombat you can use https://github.com/vinicius73/SeoTools
from seotools.
Quando finalizarmos os testes vou pra essa :D
from seotools.
All you would have to do is remove all of the laravel helper functions (like array_forget() and array_get()) -- or better yet, include those functions in your own helpers.php file and include them via composer.json like:
"files": [
"src/resources/helpers.php"
]
but once all of the helper functions are taken care of, the package is already agnostic. Someone not using Laravel could simply not register the service provider or alias, and use:
<?php
use Artesaos\SEOTools\SEOTools as SEO;
class SomeClass
{
public function generateView()
{
SEO::setTitle('Home')->setDescription('Welcome to my website!');
echo SEO::generate();
}
}
obviously, that's an odd example, but it shows that a user can already use the package without Laravel. This is because the only thing Laravel is used for is setting up the Aliases and config (I am remove the config in my next pull, so if that is accepted, you won't have to worry about the config)
from seotools.
^^ As a matter of fact, someone using Laravel can even use the package without the Service Provider (once the config is gone)
from seotools.
Related Issues (20)
- Support for PHP 8.1
- Laravel 10 released HOT 1
- Laravel dependency - Error facade HOT 1
- Documentation - OpenGraph - setProduct missing
- OpenGraph - Missing Product attributes
- I have installed artesaos via composer and published after trying to use it doesnt work, please help me HOT 1
- beforeTitle doen't work HOT 1
- Question: SEO Title Different HOT 1
- Support PHPUnit 10
- Livewire
- Non-static method Artesaos\SEOTools\SEOMeta::setTitle() cannot be called statically HOT 1
- missing attribute for setProduct
- - Root composer.json requires artesaos/seotools ^v0.23.0 -> satisfiable by artesaos/seotools[v0.23.0]. HOT 1
- do this package can cache result HOT 2
- Add support for returning the generated seo as an array of strings. Integration with Inertia.js HOT 3
- [Request] Proposal for Google Trends Integration in Laravel SEO Tools
- like the Rank Math plugin in wordpress
- Meta tags added with `SEOMeta::addMeta()` are not rendered HOT 1
- JsonLd not working when used with SEO::generate
- use for laravel 11 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seotools.