GithubHelp home page GithubHelp logo

cakephp / cakephp-api-docs Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 19.0 5.13 MB

CakePHP API Docs

Home Page: http://api.cakephp.org

License: MIT License

Makefile 3.49% HTML 1.27% JavaScript 27.21% CSS 21.82% Dockerfile 0.74% PHP 34.91% Twig 10.56%

cakephp-api-docs's Introduction

CakePHP

Software License Coverage Status PHPStan Code Consistency Total Downloads Latest Stable Version

CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.

Installing CakePHP via Composer

You can install CakePHP into your project using Composer. If you're starting a new project, we recommend using the app skeleton as a starting point. For existing applications you can run the following:

composer require cakephp/cakephp

For details on the (minimum/maximum) PHP version see version map.

Running Tests

Assuming you have PHPUnit installed system wide using one of the methods stated here, you can run the tests for CakePHP by doing the following:

  1. Copy phpunit.xml.dist to phpunit.xml.
  2. Add the relevant database credentials to your phpunit.xml if you want to run tests against a non-SQLite datasource.
  3. Run phpunit.

Some Handy Links

  • CakePHP - The rapid development PHP framework.
  • CookBook - The CakePHP user documentation; start learning here!
  • API - A reference to CakePHP's classes.
  • Awesome CakePHP - A list of featured resources around the framework.
  • Plugins - A repository of extensions to the framework.
  • The Bakery - Tips, tutorials and articles.
  • Community Center - A source for everything community related.
  • Training - Join a live session and get skilled with the framework.
  • CakeFest - Don't miss our annual CakePHP conference.
  • Cake Software Foundation - Promoting development related to CakePHP.

Get Support!

  • Slack - Join us on Slack.
  • Discord - Join us on Discord.
  • #cakephp on irc.freenode.net - Come chat with us, we have cake.
  • Forum - Official CakePHP forum.
  • GitHub Issues - Got issues? Please tell us!
  • Roadmaps - Want to contribute? Get involved!

Contributing

Security

If you’ve found a security issue in CakePHP, please use the procedure described in SECURITY.md.

cakephp-api-docs's People

Contributors

admad avatar akirk avatar andrewsville avatar antograssiot avatar arhell avatar cake17 avatar dependabot[bot] avatar dg avatar finwe avatar garas avatar josegonzalez avatar jrbasso avatar kravco avatar kukulich avatar lordsimal avatar lorenzo avatar majkl578 avatar markstory avatar mattskala avatar mavimo avatar milo avatar othercorey avatar ravage84 avatar ritesh-pandey avatar saeideng avatar smasty avatar tenkoma avatar tomaswindsor avatar voda avatar vrtak-cz 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

Watchers

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

cakephp-api-docs's Issues

There is no build-local for generating local changes

I might be missing something, but there wasn't a way to build using the source from my local cakephp branch. All of the targets will checkout a specific tag in SOURCE_DIR.

I also don't have a local environment to run make so I use Docker (similar to the use case in cakephp/docs).

I had to do 2 things to build locally:

  1. Add a build-local target to Makefile
  2. Create a barebones Dockerfile.dev that does not copy, build or run

How do you normally test your local source api doc changes?

HtmlHelper::image() is not exist on API doc from 2.0 to 2.7

Moving away from ApiGen?

As discussed in the dev channel :

This means once we start working on CakePHP 4.0 we will not be able to generate API documentation anymore.

What are our options:

  • Wait for ApiGen 5.0 to be released (may be help 'em)
  • Moving away from ApiGen as our API docs generator

What alternatives are there?

Do not have a copy available to download, and view directly in HTML pages format

Issue:
I ( and maybe many people) want have a copy available in HTML format to download. I am a developer, but I try to folow instruction [1] to build document also very difficult. Many PHP web developers don't know how to use Make, Git, tools v.v..
Please build a copy available to download, and view directly. Save the time for everyone. Save the bandwidth for this link [2].

[1] https://github.com/cakephp/cakephp-api-docs
[2] http://api.cakephp.org/

Action: If you know how to build these API docs to HTML pages, create, zip, and put it to server to download directly. Thank you!

Add permalink icon to method details

The method summaries link to an anchor in the method detail. However, if you're just searching/scrolling through the details, you cannot generate a link to that method.

This is already possible with property details:

image

Missing packages/classes

The build of 2.3 API (didn't checked others) misses some packages/classes.
eg: Under App, there are no PagesController or AppController.

Checking the Makefile, seems like --exclude $(SOURCE_DIR)/lib/Cake/Console/Templates and/or --skip-doc-path $(SOURCE_DIR)/lib/Cake/Console/Templates prevent those packages/classes from being generated.

broken code formating in API Examples

From @Graziel on August 3, 2016 22:6

the code formating in Examples looks wierd (no intendation & new lines):
http://api.cakephp.org/3.2/class-Cake.ORM.Query.html#_leftJoinWith
vs
http://api.cakephp.org/3.2/source-class-Cake.ORM.Query.html#459-531

// Get the count of articles per user
$usersQuery ->select(['total_articles' => $query->func()->count('Articles.id')]) ->leftJoinWith('Articles') ->group(['Users.id']) ->autoFields(true);

vs

// Get the count of articles per user
$usersQuery
    ->select(['total_articles' => $query->func()->count('Articles.id')])
    ->leftJoinWith('Articles')
    ->group(['Users.id'])
    ->autoFields(true);

Copied from original issue: cakephp/docs#4227

I cant build the 3.0 api

I have tried to build the api 3.0 by follow the instructions given on the README.md, I've used the 3.0 branch of cakephp, but it doesn't generate it, though, I've executed

make build-all

and it has generated me the 2.0, ..., 2.4, and with

make build-3.0

I've got an error message saying

**make * Inexistant rules to make the target << build-3.0 >>. Stop

Can not see the document of version 1.1?

The following parts of the nginx.conf do not seem to work.

    location ~ ^/1\.1(.*)$ {
        return 301 http://api11.cakephp.org/;
    }

    location ~ ^/class/.*$ {
        return 301 http://api.cakephp.org/2.6$request_uri;
    }

add elastic search API to docs

also it would be great addition to add APIs of:

  • elasticsearch
  • bake
  • acl

currently elastic search docs are not fully covered and many things can be found in only code

CakePHP API Docs Do Not Show Function Signatures On The Method Detail Portion

This is an issue with multiple versions of the API Docs:

1.3 API: http://api.cakephp.org/1.3/class-FileEngine.html#__setKey
2.0 API: http://api.cakephp.org/2.0/class-PhpReader.html#_read
3.0 API: http://api.cakephp.org/3.0/class-Cake.Core.Configure.html#_configured

All of those method definitions don't show any of the parameters for the function signature at the method detail point.

Asked @bcrowe about this and was told this was a bug and to report an issue as such.

Trait methods that inheritDoc have no information

Many traits are used to implement an interface for a class. This means many methods have only @inheritDoc in the docblock.

When you look at the api docs for these traits, the methods all seem to be empty:

https://api.cakephp.org/4.2/trait-Cake.Collection.CollectionTrait.html#avg

image

Maybe we can add a note to methods in traits that are inheriting the docblocks. We won't be able to guess what interface they're implementing, but better than leaving all the return types as mixed.

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.