Comments (8)
I guess the problem is that there is no way to generate both a lowercase directory name with a corresponding StudlyCased namespace. I have to manually edit the namespace in all the generated files.
The nice thing to have here would be the ability to specify the directory name and the namespace separately (with sane defaults).
from laravel-packager.
I have seen Laravel packages work without studlycases. It is not programmatically required, and that is why I leave it up to you to define the capitals. Or at least it was that way when I designed Packager. That is also why all examples in the readme have capitals.
from laravel-packager.
Changing the directory to lowercase would only require changing the app composer.json I think.
However, I would accept a PR that fixes this.
from laravel-packager.
Closed, waiting for Pull Request.
from laravel-packager.
The namespace may be StudyCap cased, but the vendor name and package name and their directories should be lower case. You can call the directories whatever you like in the packages
directory, but the convention for composer is a lower case vendor (e.g. "laraval") and lower case package name (e.g. "framework").
Namespaces and vendor/package names, are two completely different things. For example, the "laravel/framework" vendor/package name provides the "\Illuminate" namespace.
from laravel-packager.
I would welcome a Pull Request.
from laravel-packager.
I was trying this package today 17th November, 2018 and I seriously couldn't create a package with -
between the names and also when I use lower case it doesn't change the namespace to use UpperCase. Its a great job done to provide this package but this issue is quite annoying as I had to change the name of my package to StudlyCase.
from laravel-packager.
And still no one makes a PR.
from laravel-packager.
Related Issues (20)
- git commit all files after `packager:new` by default, with option to skip? HOT 4
- [Proposal] Also provide kebab-case vendor name and package name when replacing HOT 3
- Keywords not replaced HOT 2
- Add at least one model, one migration and one seeder HOT 1
- php 8 support HOT 2
- Interface 'Illuminate\Contracts\Validation\Rule' not found HOT 1
- cURL error 60: SSL certificate problem: unable to get local issuer certificate HOT 1
- All Packages Getting Deleted! HOT 1
- v2.7.2 composer.json does not support PHP 8.0
- Problem when run packages with laravel 9.0 HOT 1
- Adding additional dependencies HOT 1
- Non-static method Rabol\Testpackage\Testpackage::test() cannot be called statically HOT 1
- artisan packager:get fail
- Problem when run packages with laravel 10 HOT 2
- `tests` folder does not appear HOT 2
- copy from the github page does not work HOT 1
- Feature Request: Git Submodule option HOT 6
- Allow publish to use main instead of master HOT 1
- Windows composer.json problem HOT 1
- Problem with Laravel 11 HOT 2
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 laravel-packager.