https://github.com/azzarip/utilities

Utility Package for my website

https://github.com/azzarip/utilities

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Utility Package for my website

Basic Info
  • Host: GitHub
  • Owner: azzarip
  • License: mit
  • Language: PHP
  • Default Branch: main
  • Homepage:
  • Size: 201 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 15
Created over 2 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

Contains utilities classes used on all Pizza Azzari websites.

CHF

Contains the CHF object. It reads rappe integers as

CHF::int(142) // 1.42 CHF CHF::chf(1.42) // 1.42 CHF

The CHF objects outputs the string value as

$chf = CHF::int(100) {{ $chf }} // 1.00 $chf->format() // 1.- $chf->label() // CHF 1.-

Cookie

Add before the end of the html document

@livewire('cookie-consent')

It will spawn a modal with three options:

  • Accept all
  • Only Essentials
  • Modify Depending on the choice of the user, it will deploy a cookie that will confirm the acceptance of the cookie policy.

The cookie is calle cookie_consent is not encrypted, and contains a timestamp, the three consent (optional, marketing, analytics) and a version of the cookie banner. The cookie is refreshed every time, expires after one year or with a change of version.

Admin Panel

Installation

Run the following artisan command:

php artisan admin-panel:install

It will create a view/admin-panel directory with home.blade.php inside. This file access the admin home page at home.DOMAIN_BASE.

Other console commands

Install a new panel, which is automatically discovered.

php artisan admin-panel:make panel_name

Creates a new panel with name panel_name. It is automatically discovered, when the 1 day cache expires.

To refresh the cache use

php artisan admin-panel:refresh

Owner

  • Name: Paride Azzari
  • Login: azzarip
  • Kind: user
  • Location: Zurich
  • Company: ETH Zurich

Theoretical Physicist and Computational Scientist at ETH Zurich

GitHub Events

Total
  • Push event: 6
Last Year
  • Push event: 6

Packages

  • Total packages: 1
  • Total downloads:
    • packagist 510 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 15
  • Total maintainers: 1
packagist.org: azzarip/utilities

Utilities for websites using Laravel

  • License: MIT
  • Latest release: 2.2.0
    published about 2 years ago
  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 510 Total
Rankings
Dependent packages count: 18.7%
Dependent repos count: 33.1%
Average: 47.3%
Downloads: 90.1%
Maintainers (1)
Funding
Last synced: 10 months ago