GithubHelp home page GithubHelp logo

Comments (8)

deweller avatar deweller commented on May 18, 2024 2

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.

Jeroen-G avatar Jeroen-G commented on May 18, 2024 1

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.

Jeroen-G avatar Jeroen-G commented on May 18, 2024

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.

Jeroen-G avatar Jeroen-G commented on May 18, 2024

Closed, waiting for Pull Request.

from laravel-packager.

judgej avatar judgej commented on May 18, 2024

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.

Jeroen-G avatar Jeroen-G commented on May 18, 2024

I would welcome a Pull Request.

from laravel-packager.

omitobi avatar omitobi commented on May 18, 2024

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.

Jeroen-G avatar Jeroen-G commented on May 18, 2024

And still no one makes a PR.

from laravel-packager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.