Coder Social home page Coder Social logo

aspose-cells-cloud / aspose-cells-cloud-php Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 7.17 MB

PHP SDK to communicate with Aspose.Cells REST API. Create, Edit & Convert Excel files in the Cloud.

Home Page: https://products.aspose.cloud/cells/php

License: MIT License

PHP 99.97% Batchfile 0.01% Shell 0.02% PowerShell 0.01% HTML 0.01%
cloud-sdk aspose worksheet spreadsheets php xls xlsx xlsb spreadsheetml packagist

aspose-cells-cloud-php's People

Contributors

babar-raza avatar nickliuaspose avatar roywangaspose avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mandargawade

aspose-cells-cloud-php's Issues

Compatible for 8.1

Hey,
I get a lot of deprecated warnings when running PHP 8.1.
With EOL for PHP 7.4 in november 2022, it would make sense to do this upgrade sooner or later.

Call to undefined function GuzzleHttp\Psr7\build_query()

After upgrading the PHP SDK from 21.9 to 22.6 (which also updated guzzlehttp to 7.4.5), we are now getting an error on requests: "Call to undefined function GuzzleHttp\Psr7\build_query()".

From my research, it seems as though guzzle has deprecated and removed the build_query() function in preference to Query::build().

PHP 7.4.22
IIS10

Please improve PageSetup documentation

Hello!

PageSetup documentation mentions that paper_size parameter expects string. However, it does not mention what kind of string in what kind of format it expects exactly.
I have been trying for several hours to figure this out without any luck.

$pageSetup = new PageSetup([
    "paper_size" => "?", // <- tried lover case a4 and upercase A4 and letter and 297x210 and 27x11.69 nothing works.
    "print_quality" => 600,
    "print_gridlines" => false
]);

Also, the API does not respond with anything remotely useful:

[19-Nov-2020 12:22:35 Europe/Riga] PHP Fatal error:  Uncaught Aspose\Cells\Cloud\ApiException: [400] Client error: `POST https://api.aspose.cloud/v3.0/cells/sample.xlsx/worksheets/Offre/pagesetup` resulted in a `400 Bad Request` response:
{"RequestId":"Root=1-5fb64767-5831fcb6651996981ea922c4","Error":{"Code":"Fail","Message":"PostPageSetup fails. (Requeste (truncated...)
 in /var/www/aspose/webspaceroot/vendor/aspose/cells-sdk-php/lib/Api/CellsApi.php:30005
Stack trace:
#0 /var/www/aspose/webspaceroot/vendor/aspose/cells-sdk-php/lib/Api/CellsApi.php(29976): Aspose\Cells\Cloud\Api\CellsApi->cellsPageSetupPostPageSetupWithHttpInfo('sample.xlsx', 'Offre', Object(Aspose\Cells\Cloud\Model\PageSetup), NULL, NULL)
#1 /var/www/aspose/webspaceroot/public/cloud.php(120): Aspose\Cells\Cloud\Api\CellsApi->cellsPageSetupPostPageSetup('sample.xlsx', 'Offre', Object(Aspose\Cells\Cloud\Model\PageSetup), NULL, NULL)
#2 /var/www/aspose/webspaceroot/public/cloud.php(177): App\apiTest->doPageSetup('sample.xlsx', 2, Object(Aspose\Cells\Cloud\Model\PageSetup))
#3 {main}
  thrown in /var/www/aspose/webspaceroot/vendor/aspose/cells-sdk-php/lib/Api/CellsApi.php on line 30005

I would hope this get's improved.

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.