manoz/venus
最新稳定版本:v1.1.0
Composer 安装命令:
composer create-project manoz/venus
包简介
A Laravel package that contains everything to write code without thinking about codestyle.
README 文档
README
Venus
A Laravel package that contains everything to write code without thinking about codestyle 🚀
Motivations
I work a lot on Laravel projects. As a front-end developer, I always have to deal with the front-end stack installation and codestyle/code quality stuff.
I'm tired of doing the same things over and over again. Grab my ESLint config files, copy them to my new project. Grab all PHP Codestyle stuff, copy everything to my new project. Install all the dependencies, and so on.
I could have used a Laravel starter project but I just love to start from scratch with a fresh Laravel installation using the Laravel installer commands.
This is why I created Venus.
Venus - the Roman goddess of love, beauty, fertility, prosperity, and desire - is a very opinionated Laravel package designed to streamline the integration of essential code style tools, such as ESLint, Duster, and Prettier, into new Laravel projects. With the help of artisan commands, Venus simplifies the installation process, promoting cleaner and more consistent code across all of my projects.
Features
This package contains the following tools:
- ESLint: a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code, with the goal of making code more consistent and avoiding bugs.
- Duster: a tool for identifying and reporting on patterns found in PHP code, with the goal of making code more consistent and avoiding bugs.
- Prettier: an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules.
- Complete front-end stack installation with PostCSS, Tailwind CSS and Alpine.js.
Installation
You can install the package via composer:
composer require manoz/venus --dev
Usage
Once the package is installed, you can run the following artisan commands to install the tools:
Install everything:
php artisan venus:install --all npm install
Install only ESLint:
php artisan venus:install --eslint npm install
Install only Duster:
php artisan venus:install --duster
Install only Prettier:
php artisan venus:install --prettier npm install
Install only the Front-end stack:
php artisan venus:install --frontend npm install
Don't forget to import Tailwind CSS in your resources/css/app.css file:
@import "./tailwind.css";
Each tool will have its own configuration file and dependencies. Everything will be installed for you and config files will be copied to your project.
Be careful: this package will overwrite your existing ESLint, Duster and Prettier config files.
It will also add npm scripts and package to your package.json file.
It will also add composer scripts to your composer.json file.
Configuration
ESLint
You can configure ESLint by editing the .eslintrc.js file in the root of your project. More informations can be found on the ESLint website.
Duster
There's a lot of stuff happening behind the scenes with Duster.
You should check usage and options on the Duster website.
Prettier
You can configure Prettier by editing the .prettierrc.json file in the root of your project. More informations can be found on the Prettier website.
Front-end stack
Tailwind CSS and Alpine.js are already configured. You can extend Tailwind's configuration by editing the tailwind.config.js file in the root of your project. More informations can be found on the Tailwind CSS website.
Contributing
Thank you for considering contributing to Venus! The contribution guide can be found here.
Security Vulnerabilities
If you discover any security-related issues, please review the security policy instead of using the issue tracker.
License
Licensed under the MIT License, Copyright © Manoz.
See LICENSE for more information.
manoz/venus 适用场景与选型建议
manoz/venus 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「php-cs-fixer」 「eslint」 「duster」 「prettier」 「Pint」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 manoz/venus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 manoz/venus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 manoz/venus 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
HiDev plugin for PHP-CS-Fixer
Captain Hook Plugin to validate files using ESLint
Taptima PHP-CS-Fixer fixers
Enforce coding standards on your PHP & Javascript. Now with SWagger Support. Don't let your team mess up your code base.
Axa Zara PHP Code style configuration for `php-cs-fixer` based on PSR-12.
A generic package for implementing Laravel Pint coding standards across Laravel packages
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-18