The phase rule of Gibbs is one of the basic equations in phase equilibria. Although it has been with us for 150 years, discussions, interpretations and extensions have been published. Here, the following new content is provided: (i). the choice of independent components is discussed, and the component rule is introduced, (ii). independent state variables are divided into compositional and non-compositional ones, (iii). the generalized phase rule is derived replacing number two in the original phase rule by the number of independent non-compositional state variables introduced above, (iv). the degree of freedom is decreased by the number of compositional constraints in special points (azeotrope and congruent melting) of phase diagrams, (v). a rule is derived connecting the maximum number of coexisting phases with the dimensions of the phase diagram, (vi). examples show how to apply the phase rule to unary, binary and ternary phase diagrams and their sections, (vii). the same is extended with the discussion of calculable and not calculable phase fractions, (viii). it is shown that the current definition of the degree of freedom is not sufficient in the number of cases, (ix). the current definition of the degree of freedom is extended, (x). the application of the generalized phase rule is demonstrated when other non-compositional state variables are applied for nano-phase diagrams, and/or for phase diagrams under the influence of electric potential difference, external magnetic field, mechanical strain or the gravitational field.