Giter Site home page Giter Site logo

Composer Package about restserver HOT 10 CLOSED

jacwright avatar jacwright commented on August 11, 2024
Composer Package

from restserver.

Comments (10)

karneaud avatar karneaud commented on August 11, 2024

tried using composer and got this message Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package jacwright/restserver could not be found in any versi
on, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.

Installation failed, reverting ./composer.json to its original content.

from restserver.

karneaud avatar karneaud commented on August 11, 2024

Tried to install using git and composer install and got the following error

Composer could not find a composer.json file in ...\vendor\ja
cwright\RestServer
To initialize a project, please create a composer.json file as described in the
https://getcomposer.org/ "Getting Started" section

from restserver.

stevleibelt avatar stevleibelt commented on August 11, 2024

Well, two things.
First of all, I made a mistake by using uppercase chracters.
Seconldy, @jacwright simple missed to put it on packagist.org.

@jacwright I can submit it to packagist if you want to (and allow me this to do). I will fix the uppercase issue in another pull request.

Kind regards

from restserver.

stevleibelt avatar stevleibelt commented on August 11, 2024

see pull request/41

from restserver.

stevleibelt avatar stevleibelt commented on August 11, 2024

@karneaud thanks for reporting this issue 👍

from restserver.

jacwright avatar jacwright commented on August 11, 2024

@stevleibelt please submit!

from restserver.

stevleibelt avatar stevleibelt commented on August 11, 2024

@karneaud an @jacwright
damn it, this situation really frustrates me. I've published this repository at packagist (and also fixed the broken links in pull request 42.
But whenever I call the url, I get back a 500. As you can see, I've published a lot of packages already - so I thought I know what I am doing.

@jacwright Is it possible you gain me write access to this repository? Then I can setup "auto updating" to this repository to packaigst.
I've wrote a mail to the packagist crew already with the question to gain me some log information for the 500 response code. Maybe they will answer me soon.
I'm off for a few days, so please be patient.

Kind Regards

stev

[edit]
FYI:

composer validate composer.json 
composer.json is valid

See issue/514 for the 500 problem.

from restserver.

karneaud avatar karneaud commented on August 11, 2024

Not sure if this was by design but had to use

 use \DeathMiner\RestServer\RestServer as Server;

could possibly shorten it further by removing the last

\RestServer

from restserver.

stevleibelt avatar stevleibelt commented on August 11, 2024

@karneaud as mentioned in issue 45, the "DeathMiner" namespace is not part of this project.

The use statement in your php file should look like the following line:

use \Jacwright\RestServer\RestServer

Indeed, we could shorten the name by removing the last "Rest" from the class name.
This would lead to incompatibility across all available and installed packages. I think this is not worth the affort.

Kind Regards

from restserver.

karneaud avatar karneaud commented on August 11, 2024

Odd...i guess i am using someone else's package

from restserver.

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.