Download the PHP package wendelladriel/laravel-estilo without Composer

On this page you can find all versions of the php package wendelladriel/laravel-estilo. 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-estilo

Estilo for Laravel

Estilo for Laravel

Manage your CSS in PHP and easily use it on Blade

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main)

[!WARNING] This package is not stable yet, and breaking changes can be added even in minor versions before it reaches v1.0.0.

Check the Changelog for breaking changes, features and bug fixes.

Features

Installation

Config

Publish the config file:

The config file will be added to config/estilo.php. It might feel quite unusual from the common config files you see.

Styles

Estilo lets you define your CSS in PHP, using a fluent builder with autocompletion for hundreds of CSS properties.

Defining a Style

To define a new style you should use the Estilo::define() method inside the config/estilo.php file.

Each time you call Estilo::define() you create a style definition. You can use any CSS selector that you would: classes, tags, ids, etc.

If you need the value to be wrapped in quotes, add double quotes when defining.

Checking if a Style exists

To check if a style is already defined you can use the Estilo::has() method.

Deleting a Style

To delete a style, you can use the Estilo::forget() method.

Tagging Styles

You can pass a 3rd parameter to the Estilo::define() method that's an array of tags. This is especially powerful to create different stylesheets for your application.

Using the Styles in Blade

When you need to use any of the styles generated with Estilo in your Blade files, you can use the @estilo directive, by adding it to the <head> tag of your page. This will load ALL the styles created with Estilo to your Blade file.

When you add the @estilo directive, it will create a <style> tag with all the styles that are needed.

For example, this:

Will generate this:

Adding only specific Styles

You can use the tags feature to load only specific styles that you want. The example below will load only the styles tagged with the tags common and typograph.

Using Styles as inline style

You may need or want to use some of the defined styles as inline styles. For that you can use the estilo() helper function. With this you can use any of defined classes, even the ones not loaded with the @estilo directive.

TailwindCSS support

Estilo lets you create "classes" that are groups of other TailwindCSS classes, similar to what you achieve with the @apply. This won't create a CSS class, but will allow you to use it in your Blade files as if it were.

Defining a Style

To define a new style you should use the EstiloWind::define() method inside the config/estilo.php file. Each time you call EstiloWind::define() you create a style definition.

Checking if a Style exists

To check if a style is already defined you can use the EstiloWind::has() method.

Deleting a Style

To delete a style, you can use the EstiloWind::forget() method.

Using the Styles in Blade

To use your defined "classes" you can use the estilowind() helper function in your HTML class attribute.

Credits

Contributing

Check the Contributing Guide.


All versions of laravel-estilo with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0|^13.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 wendelladriel/laravel-estilo contains the following files

Loading the files please wait ...