Giter Site home page Giter Site logo

api-pack's Introduction

A Pack for API Platform

This is a Flex pack to install API Platform, a next-generation web framework designed to easily create API-first projects without compromising extensibility and flexibility.

Installation instructions are available in the API Platform documentation.

License

The MIT License (MIT). Please see License File for more information.

api-pack's People

Contributors

dunglas avatar fabpot avatar gregoirehebert avatar lloy0076 avatar nicolas-grekas avatar saphyel avatar simperfit avatar soyuka avatar sroze avatar vasilvestre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-pack's Issues

problem with php 7.3 and php 7.4 when use composer require api

API Platform version(s) affected: last

Description
i have problem when use de SymfonyCLI the command: symfony composer require api .
The error show on console : Illegal String Offset 'Version'

How to reproduce
symfony composer require api on php 7.3 and 7.4

Possible Solution
use COMPOSER_MEMORY_LIMIT=-1 COMPOSER=composer-dev.json composer require api-platform/api-pack --no-interaction --no-scripts instead of

Get rid of this pack

Hey,

using this pack will lead to frustrated users because the dependencies are not up to date.

I would recommend users to just copy the contents of the composer.json and put it in their own with adapted versions.

ApiPlatform\Core\Bridge\Elasticsearch

Hi !
I'm an API Pack user and atfer updated, i'm on ^1.2.
The issue is that some filter are not on the bundle.

use ApiPlatform\Core\Bridge\Elasticsearch\DataProvider\Filter\TermFilter;
Precisely Elasticsearch

How could i proceed as i us the api pack.

Thank fo all !

Allow to install API pack with symfony 5

Description

Please update nelmio/cors-bundle dependency version to 2.0.x-dev (it supports Symfony 5). Otherwise installation of API pack unsuccessfull for Symfony 5:

$ composer require api:dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - nelmio/cors-bundle 1.5.6 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    - nelmio/cors-bundle 1.5.5 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    - nelmio/cors-bundle 1.5.4 requires symfony/framework-bundle ^2.7 || ^3.0 || ^4.0 -> no matching package found.
    - nelmio/cors-bundle 1.5.3 requires symfony/framework-bundle ^2.7 || ^3.0 -> no matching package found.
    - nelmio/cors-bundle 1.5.2 requires symfony/framework-bundle ^2.7 || ^3.0 -> no matching package found.
    - nelmio/cors-bundle 1.5.1 requires symfony/framework-bundle ^2.7 || ^3.0 -> no matching package found.
    - nelmio/cors-bundle 1.5.0 requires symfony/framework-bundle ^2.7 || ^3.0 -> no matching package found.
    - api-platform/api-pack dev-master requires nelmio/cors-bundle ^1.5 -> satisfiable by nelmio/cors-bundle[1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6].
    - Installation request for api-platform/api-pack dev-master -> satisfiable by api-platform/api-pack[dev-master].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

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

update api-pack

Please update api-pack to latest version of api-platform core 2.3.1 it's on 2.1

Unused vendor?

Why is required symfony/twig-bundle?

Would be possible that someone review if every vendor is really required?

Readme requested

You should add a readme explaining what this repo is about.

As the composer metadata use the metapackage type, this won't impact users as the source will never be downloaded. But it will help people looking at the repo

when i req api it have 1 security vulnerability

symfony composer req api

$ symfony composer req api
./composer.json has been updated
Running composer update api-platform/api-pack
Loading composer repositories with package information
Updating dependencies
Lock file operations: 3 installs, 0 updates, 0 removals
  - Locking api-platform/api-pack (v1.3.0)
  - Locking symfony/orm-pack (v2.4.0)
  - Locking symfony/serializer-pack (v1.1.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
  - Installing symfony/serializer-pack (v1.1.0): Extracting archive
  - Installing symfony/orm-pack (v2.4.0): Extracting archive
  - Installing api-platform/api-pack (v1.3.0): Extracting archive
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
139 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Unpacking Symfony packs
  - Unpacked api-platform/api-pack
  - Unpacked symfony/orm-pack
  - Unpacked symfony/serializer-pack
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 3 removals
  - Removing symfony/serializer-pack (v1.1.0)
  - Removing symfony/orm-pack (v2.4.0)
  - Removing api-platform/api-pack (v1.3.0)
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
137 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]

Found 1 security vulnerability advisory affecting 1 package.
Run composer audit for a full list of advisories.

Found 1 security vulnerability advisory affecting 1 package.
Run composer audit for a full list of advisories.

composer audit

$ composer audit
Found 1 security vulnerability advisory affecting 1 package:
+-------------------+----------------------------------------------------------------------------------+
| Package           | api-platform/core                                                                |
| CVE               | CVE-2023-25575                                                                   |
| Title             | CVE-2023-25575: Secured properties may be accessible within collections          |
| URL               | https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv     |
| Affected versions | >=2.6.0,<2.7.10|>=3.0.0,<3.0.12|>=3.1.0,<3.1.3                                   |
| Reported at       | 2023-02-28T10:37:00+00:00                                                        |
+-------------------+----------------------------------------------------------------------------------+

show the installed version

$ composer show -i api-platform/core
You are using the deprecated option "installed". Only installed packages are shown by default now. The --all option can be used to show all packages.
name     : api-platform/core
descrip. : Build a fully-featured hypermedia or GraphQL API in minutes!
keywords : Hydra, JSON-LD, api, graphql, hal, jsonapi, openapi, rest, swagger
versions : * v2.7.0
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://api-platform.com
source   : [git] https://github.com/api-platform/core.git d3f5fb8a1e5de4d516c3407b71e592e26efdca05
dist     : [zip] https://api.github.com/repos/api-platform/core/zipball/d3f5fb8a1e5de4d516c3407b71e592e26efdca05 d3f5fb8a1e5de4d516c3407b71e592e26efdca05
path     : D:\phpstudy_pro\WWW\jihulab.com\core\sf54\vendor\api-platform\core
names    : api-platform/core

how can i Specifies the version?

composer req api fails with symfony/website-skeleton fresh install

API Platform version(s) affected: 2.5.*

Description
It's not possible anymore to install API Platform from Symfony website skeleton 5.* with api-pack

How to reproduce

composer create-project symfony/website-skeleton
cd website-skeleton
composer req api # fails

Work Around

composer require phpdocumentor/reflection-docblock ^4.0
composer req api
composer unpack api-platform/api-pack
composer require phpdocumentor/reflection-docblock ^5.0

Solution
"phpdocumentor/reflection-docblock": "^3.0 || ^4.0 || ^5.0",

No route found for "GET /"

After installing Symfony4, then the webserver, and the api-pack with the following command

composer create-project symfony/skeleton project
cd project
composer req webserver
composer req api

I get No route found for "GET /"

See the screenshot below
error

I also tried to create an entity user and to access it though /users
Same error I followed this video: https://medium.com/@fabpot/symfony-4-a-small-screencast-cf6511823f except that I used the 4.0 version of Symfony

I tried in Ubuntu and Windows, same problem.

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.